Essential macOS 13 Terminal Commands for Power Users
macOS 13 Ventura provides a powerful Unix-based foundation beneath its refined interface, enabling power users to bypass graphic limitations and execute deep system tasks rapidly. This guide highlights the most essential Terminal commands for managing system performance, automating maintenance, diagnosing network issues, and unlocking hidden configuration options in macOS 13.
1. caffeinate
Prevent your Mac from sleeping while running a long compile, file
transfer, or download. By default, typing caffeinate keeps
your system awake indefinitely until you press
Control + C.
- Example:
caffeinate -u -t 3600(keeps the system awake for one hour / 3,600 seconds).
2. softwareupdate
Update macOS 13 without opening the System Settings interface. This command is faster and provides clear insight into available patches.
- Check for updates:
softwareupdate -l - Install all updates:
softwareupdate -ia --restart
3. networkQuality
Introduced natively in recent macOS versions, this tool measures your network's upload/download capacity along with responsiveness (bufferbloat) using Apple's testing servers.
- Example:
networkQuality
4. mdfind
Harness the power of Spotlight directly from the CLI. Unlike standard
search commands like find, mdfind searches the
pre-indexed Spotlight database, returning results instantly.
- Search by filename:
mdfind -name "project_notes" - Search within a specific folder:
mdfind -onlyin ~/Documents "quarterly review"
5. pbcopy and
pbpaste
Bridge the gap between the Terminal and your macOS clipboard. Pipe command outputs directly to your clipboard or paste clipboard contents into scripts and text files.
- Copy an SSH key:
pbcopy < ~/.ssh/id_ed25519.pub - Save clipboard contents:
pbpaste > notes.txt
6. lsof -i
Quickly identify which applications or background processes are holding specific network ports open.
- Example:
lsof -i :8080(finds what process is occupying port 8080). - Kill the process: Pair it with
kill -9 <PID>to free up the port.
7. defaults
Modify hidden macOS system preferences that are not accessible via System Settings.
- Show hidden files in Finder:
defaults write com.apple.Finder AppleShowAllFiles -bool true && killall Finder - Change screenshot save location:
defaults write com.apple.screencapture location ~/Pictures/Screenshots && killall SystemUIServer
8. sudo purge
Force macOS to flush inactive memory and clear disk caches. This is useful for freeing up RAM instantly after closing resource-heavy developer environments or video editing software.
- Example:
sudo purge
9. diskutil
A complete command-line alternative to Disk Utility for inspecting, formatting, and repairing internal and external drives.
- List drives:
diskutil list - Eject a volume safely:
diskutil unmount /Volumes/DriveName
10. killall
Instantly restart sluggish system processes without rebooting the Mac.
- Restart the Dock:
killall Dock - Restart Finder:
killall Finder - Restart the Control Center:
killall ControlCenter