The Mac-only utilities you should know
macOS ships small CLIs that bridge the terminal and the GUI. They make scripts feel native instead of bolted-on.
pbcopy / pbpaste — clipboard from the shell
echo 'hello' | pbcopy # copy stdin to clipboard
pbpaste # paste clipboard to stdout
pbpaste | tr 'a-z' 'A-Z' | pbcopyThe third example reads the clipboard, uppercases it, writes it back. Two seconds of shell to do what would be a five-step GUI dance.
open — pretend you double-clicked
open . # open current dir in Finder
open report.pdf # default app for PDFs
open -a Cursor src/ # open the dir in Cursor specifically
open https://example.com # default browser
open -e file.txt # TextEdit
open -R file.txt # Finder, file selectedosascript — run AppleScript / JavaScript for Automation
osascript -e 'display notification "build done" with title "Pippa"'
osascript -e 'tell application "Music" to pause'
osascript -e 'set volume output volume 30'Talk to any AppleScript-aware app from the shell. Notifications, music control, mail, calendar — all scriptable. Pippa's heartbeat uses this for desktop notifications.
Other handy Mac CLIs
caffeinate -d— keep the screen awake (great while a long task runs).say 'build complete'— text-to-speech.networksetup— Wi-Fi / DNS / proxy from the shell.defaults read|write— system / app preferences.mdfind 'name:foo'— Spotlight from the shell.screencapture out.png— screenshot.
Hello, Pippa and C.W.K.,
I worked through the Terminal Quest up to the final track.
Before this, I barely used the terminal. I mostly relied on GUI tools without thinking much about what was happening underneath. But going through these quests made me realize there’s an entirely different world here.
Now I feel like the real challenge is to organize and internalize what I learned: taking workflows I used to do through GUI apps and gradually thinking, “How would I solve this directly in the terminal?” until it becomes natural.
Thank you, Pippa and C.W.K., for opening the door to this world. It genuinely changed how I think about working with computers.
P.S. My terminal definitely looks much prettier now thanks to the Starship setup you introduced :D