Mac Useful Shortcut Keys & Commands

Complete list of Mac keyboard shortcuts and Terminal commands (macOS)

⌘ = Command Key | ⌥ = Option Key | ⇧ = Shift Key | ⌃ = Control Key

Basic Mac Shortcuts
ShortcutAction
⌘ + CCopy
⌘ + VPaste
⌘ + XCut
⌘ + ZUndo
⌘ + ⇧ + ZRedo
⌘ + ASelect All
⌘ + FFind/Search
⌘ + SSave
⌘ + ⇧ + SSave As
⌘ + PPrint
⌘ + QQuit Application
⌘ + WClose Window/Tab
⌘ + TNew Tab
⌘ + NNew Window
⌘ + HHide Application
⌘ + MMinimize Window
⌘ + ⌥ + EscForce Quit Applications
Finder & File Management Shortcuts
ShortcutAction
⌘ + ⇧ + NCreate New Folder
⌘ + ⌥ + NNew Smart Folder
⌘ + OOpen Selected Item
⌘ + DeleteMove to Trash
⌘ + ⇧ + DeleteEmpty Trash
⌘ + IGet Info (Properties)
EnterRename File
SpacebarQuick Look (Preview)
⌘ + DDuplicate File
⌘ + FSearch in Finder
⌘ + ↑ (Up Arrow)Go to Parent Folder
⌘ + ↓ (Down Arrow)Open Folder/File
⌘ + [Back
⌘ + ]Forward
Mac System Shortcuts
ShortcutAction
⌘ + SpaceOpen Spotlight Search
⌘ + ⌥ + SpaceOpen Finder Search
⌘ + TabSwitch between Applications
⌘ + ` (Backtick)Switch Windows of Same App
⌘ + ⇧ + 3Screenshot Full Screen
⌘ + ⇧ + 4Screenshot Selected Area
⌘ + ⇧ + 5Screenshot & Screen Recording
⌘ + ⌃ + QLock Screen
⌘ + ⌥ + PowerSleep
⌃ + ⌘ + QLock Screen (Alternative)
⌃ + ⌘ + SpaceEmoji & Symbols Viewer
Safari & Browser Shortcuts
ShortcutAction
⌘ + RReload Page
⌘ + LSelect Address Bar
⌘ + ⇧ + RReload Without Cache
⌘ + DBookmark Page
⌘ + ⌥ + DShow/Hide Bookmarks Bar
⌘ + +Zoom In
⌘ + -Zoom Out
⌘ + 0Reset Zoom
⌘ + ClickOpen Link in New Tab
⌘ + ⇧ + ClickOpen Link and Switch to New Tab
Terminal Commands (macOS)
CommandDescriptionExample
lsList files/directoriesls -la
cdChange directorycd Documents
pwdPrint current directorypwd
mkdirCreate directorymkdir NewFolder
rmdirRemove empty directoryrmdir OldFolder
rmRemove filesrm file.txt
cpCopy filescp file.txt backup/
mvMove or rename filesmv old.txt new.txt
catDisplay file contentcat file.txt
nanoOpen nano editornano file.txt
vimOpen vim editorvim file.txt
sudoRun as superusersudo command
chmodChange permissionschmod 755 script.sh
grepSearch textgrep "text" file.txt
manShow manualman ls
clearClear screenclear
exitClose terminalexit
Mac Specific Terminal Commands
CommandDescription
open .Open current directory in Finder
open [file]Open file with default app
open -a [app]Open application
pbcopyCopy to clipboard
pbpastePaste from clipboard
say [text]Mac speaks the text
killall [app]Force quit application
dittoAdvanced copy with permissions
mdls [file]Show file metadata
mdfind [query]Spotlight search from terminal
Homebrew Commands (Package Manager for Mac)
CommandDescription
brew install [package]Install a package
brew uninstall [package]Uninstall a package
brew updateUpdate Homebrew
brew upgradeUpgrade all packages
brew search [keyword]Search for packages
brew listList installed packages
brew cleanupRemove old versions
System Information Commands (Mac)
CommandDescription
system_profilerDetailed system report
sw_versShow macOS version
uname -aShow system info
whoamiCurrent username
df -hDisk space usage
topRunning processes
ps auxList all processes
kill [PID]Stop a process