← All TILs

Useful macOS Terminal Commands

caffeinate -t 3600 Prevents your Mac from sleeping for 1 hour. Great for long-running builds, downloads, CI validation, or test runs that you don’t want interrupted.

networkQuality Runs a quick network performance test, showing upload/download throughput and responsiveness. Handy when package restores, Docker pulls, or artifact downloads seem unusually slow.

say "Build complete" Uses macOS text-to-speech to announce a message. A simple way to get notified when a long-running build or script finishes.

echo "v1.2.3" | pbcopy Copies terminal output directly to the clipboard. Useful for build numbers, commit SHAs, URLs, and release notes.

open . Opens the current directory in Finder. Great for quickly accessing build outputs, logs, or generated files without navigating manually.