Mac OS Terminal
A-Z Index of Apple macOS (bash) commands
Some usefull commands
Open a Folder from Terminal
cd
to directory, then
Create a File in a Folder
cd
to directory, then
to creat a Markdown file with name "Filename"; use Filename.txt for a text file etc.
Prevent Mac laptop from turning on when opening its lid or connecting to power
Prevent startup when opening the lid or connecting to power:
Prevent startup only when opening the lid:
Prevent startup only when connecting to power:
Undo any of the previous commands:
Adjust Mac Menu Bar Whitespace
You can modify the default padding and spacing between elements in the Mac menu:
defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 6
defaults -currentHost write -globalDomain NSStatusItemSpacing -int 6
Revert to the original values defaults -currentHost delete -globalDomain
airport / WiFi
Get details about your current wireless network / WiFi connection.
arp
Get all IP Adresses in a Network
curl
Get my public IP address, or IP adress with details: