# macOS
# version info
uname -a
system_profiler SPSoftwareDataType
# shell
# get shell
echo $0
# restart shell
. ~/.sh_profile
# env vars
printenv
echo "$PATH"
# services
sudo launchctl list
# memory
cat /sys/fs/cgroup/memory/memory.limit_in_bytes
# networking
ipconfig getifaddr en1 # private ip, last inet usually
# ports
sudo lsof -PiTCP -sTCP:LISTEN
# finder
Cmd + Shift + .
# misc
# copy to clipboard
pbcopy < ~/.ssh/id_rsa.pub
tar -cvf file.tar <path_to_directory>
tar -xvzf file.tar
← linux kubernetes →