Mac Commands

Mac Commands


Boot Time Options and Commands

Safe Mode = hold shift on boot

Single User Mode = Command + S


Command + Option + Esc = Force Quit


Terminal Commands

To view manual or details on a command you can put always type man (command)


Mount a disk = # mount (options) source dest

Check disk = fsck -fy /

list folders = ls -alh (attributes, list, human readable)

directory usage summary = du -sh

Disk Usage = df -h

modify permissions = chmod (options)

enable verbose mode during boot = # sudo nvram boot-args=”-v”

Disable verbose mode = # sudo nvram boot-args=

Check current verbose mode = # nvram -p

list all running processes = # ps -ax

kill a process by PID = # kill 2354(pid)

kill an application by name = # killall chrome

top applications in memory



vm_stat shows virtual memory usage

users show users logged into machine

| combine multiple commands together like ‘grep’    ex: # ls -alh | grep ‘recipe.txt’

grep allows you to filter results of a command


Applejack Commands


Networking Commands



traceroute / tracert

ipconfig / ifconfig





Article by Bizanator

I'm a security researcher, pentester and general IT guru professionally since 2003. While IT and security has been a habit of mine, literally learning my ABCs on an Apple IIe I have worked on virtually every operating system in the past 25 years. Learning about memory manipulation starting in the early Blizzard days I found an affinity in security and exploit development. My career has allowed me to work in a variety of industries and have been a strong supporter of open source and virtualization. My goal here is to provide a forum of information where when you're brain dead hopefully myself or one of our members can work together in the spirit of open source and resolving those brain dead moments. You can request a consultation with me on Maven.

Leave a Reply

Your email address will not be published. Required fields are marked *