Macos_Fundamentals_Module_Cheat_Sheet
Macos_Fundamentals_Module_Cheat_Sheet
CHEAT SHEET
macOS Fundamentals
chmod -vv <octal value> <file> Modify permissions of a file and show
the results
sudo chown <userOwn>:<groupOwn> <file> Change the user and group owner of
a file
Networking Commands
Command Description
ifconfig en0 inet <192.168.1.1> Manually set an interfaces IP address and subnet
netmask < 255.255.255.0 > mask
lsof -n -i4TCP -P View TCP ports that are bound while displaying the
application that has it bound
networksetup - This will print out the network services running and
listnetworkserviceorder the order in which they are queried for connection. A
service at the beginning of the list is checked first.
networksetup -getinfo <devicename> Get basic info about a networkservice (device), such
as the IP address assigned, subnet mask, gateway,
and Mac-Address.
security find-generic-password -wa Pull the password associated with a specific SSID
<SSID> from the security keychain
Application Management
Command Description
.bashrc Configuration
file for Bash
.zshrc Configuration
file for Zsh