← Back to Guides Mac Terminal Commands

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.

⚡ Mac Pro Setup

Pair with great Mac.

Apple MacBook Pro M5 14" 16GB 512GB
Pro Mac
Check Price →

Cost Breakdown — All Options

Where Cost Wait Notes
Spotlight calcspotlight: type calcFreeReplace calculator
Activity MonitorCmd+Space → activityFreeReplace Task Manager
Disk UtilityCmd+Space → diskFreeFormat / repair
Terminal (default zsh)/Applications/UtilitiesFreePower user
Homebrewbrew install softwareFreePackage 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 hidden
  • cd ~ — go home
  • cd /Users/$USER/Documents — go to documents
  • open . — open current directory in Finder
  • open file.txt — open file in default app
  • cat file.txt — display file contents
  • cp src dst — copy
  • mv src dst — move/rename
  • rm 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 sleeping
  • caffeinate -t 7200 — keep awake 2 hours
  • pmset -g — show power settings

Network Tools

  • networksetup -getairportnetwork en0 — current Wi-Fi network
  • networksetup -listallhardwareports — all network interfaces
  • airport -s (older) or system_profiler SPAirPortDataType — list available networks
  • ifconfig — IP addresses

System Info

  • system_profiler SPHardwareDataType — Mac specs
  • uname -a — kernel + architecture
  • sw_vers — macOS version
  • top — running processes
  • ps aux | grep [name] — find specific process

File Search

  • find . -name "*.pdf" — find all PDFs in current dir + subdirs
  • mdfind -name 'invoice' — Spotlight-equivalent CLI search
  • grep -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.

Ship It In for Repair →