Best Mac Terminal Commands 2026: Power User Guide
Mac Terminal unlocks Apple Silicon's full power. After 8+ years scripting on Mac, here are the 2026 essential commands every power user should know.
Cost Breakdown — All Options
| Where | Cost | Wait | Notes |
|---|---|---|---|
| Spotlight calc | spotlight: type calc | Free | Replace calculator |
| Activity Monitor | Cmd+Space → activity | Free | Replace Task Manager |
| Disk Utility | Cmd+Space → disk | Free | Format / repair |
| Terminal (default zsh) | /Applications/Utilities | Free | Power user |
| Homebrew | brew install software | Free | Package manager |
Open Terminal
Cmd+Space → 'terminal' → enter. Or /Applications/Utilities/Terminal.app.
macOS uses zsh by default since macOS Catalina (replaced bash).
Essential Commands
pwd— print working directory (current location)ls -la— list files including hiddencd ~— go homecd /Users/$USER/Documents— go to documentsopen .— open current directory in Finderopen file.txt— open file in default appcat file.txt— display file contentscp src dst— copymv src dst— move/renamerm file— delete (no trash, permanent!)mkdir foldername— create folder
Homebrew (Package Manager)
Install: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Then: brew install [package] — installs free software like git, node, python, etc.
Show Hidden Files
defaults write com.apple.finder AppleShowAllFiles -bool true; killall Finder
Reveal hidden files in Finder (.DS_Store, .gitignore, etc).
Speed Up Dock
defaults write com.apple.dock autohide-time-modifier -float 0.15; killall Dock
Makes auto-hide Dock animation 50% faster.
Take Screenshot Programmatically
screencapture screen.png — full screen
screencapture -i screen.png — interactive selection
screencapture -t jpg screen.jpg — JPEG format
Power Management
caffeinate— prevent Mac from sleepingcaffeinate -t 7200— keep awake 2 hourspmset -g— show power settings
Network Tools
networksetup -getairportnetwork en0— current Wi-Fi networknetworksetup -listallhardwareports— all network interfacesairport -s(older) or system_profiler SPAirPortDataType — list available networksifconfig— IP addresses
System Info
system_profiler SPHardwareDataType— Mac specsuname -a— kernel + architecturesw_vers— macOS versiontop— running processesps aux | grep [name]— find specific process
File Search
find . -name "*.pdf"— find all PDFs in current dir + subdirsmdfind -name 'invoice'— Spotlight-equivalent CLI searchgrep -r "keyword" .— search for text in files
Productivity Aliases (Add to ~/.zshrc)
alias ll='ls -la' alias ..='cd ..' alias home='cd ~' alias docs='cd ~/Documents' alias gs='git status' alias gp='git pull'
Update macOS via CLI
softwareupdate -l — list available updates
softwareupdate -ia — install all updates
Empty Trash
rm -rf ~/.Trash/* — empty trash
Verdict
Master 20 essential commands → save 1+ hour/day on Mac.
Add Homebrew + .zshrc aliases = 10x productivity. Pro Mac users live in Terminal.
Mail-In Repair Service
Don't have time to wait for Apple? We offer mail-in repair with overnight return shipping.