Back to technologies
/macos
macOS Terminal command reference
Practical macOS terminal commands for local developer workflows.
14 matches
Files & Finder
4 commands
open .Open the current directory in Finder.
open file.txtOpen a file with its default macOS application.
pbcopy < file.txtCopy file contents to the macOS clipboard.
pbpaste > notes.txtPaste clipboard contents into a file.
System & Productivity
5 commands
sw_versShow the installed macOS version.
system_profiler SPHardwareDataTypeDisplay hardware information for the Mac.
top -o cpuMonitor processes sorted by CPU usage.
caffeinate -dPrevent the Mac from sleeping while working.
say "Build complete"Use macOS text-to-speech from the terminal.
Networking & Homebrew
5 commands
ifconfigDisplay network interface information.
networksetup -listallhardwareportsList available network hardware ports.
brew updateUpdate Homebrew package metadata.
brew install wgetInstall a package with Homebrew.
defaults read com.apple.finderRead Finder preference values from the defaults database.