Learning the macOS Terminal does not mean saying goodbye to Finder, Safari, or Copy & Paste. Think of open and pbcopy as friendly doorways that connect your text-based Terminal straight to the visual Mac apps you already love.

1. open: Jump Straight to Finder or Apps

Instead of hunting through folders in Finder to find where your Terminal currently is, type open . (the dot means "this current folder"). You can also open any file or launch an app by name:

# Open your current Terminal folder in a Finder window
open .

# Open a file using its default Mac app
open notes.txt

# Launch Safari straight from Terminal
open -a Safari

2. pbcopy: Send Terminal Text to Your Clipboard

Have you ever tried highlighting long text in Terminal with your mouse just to copy it? With pbcopy, you can send the output of any command straight to your Mac clipboard using the pipe symbol (|), ready for Cmd + V:

# Copy your current folder path to the clipboard
pwd | pbcopy

# Copy the entire contents of a file without opening it
cat notes.txt | pbcopy

3. pbpaste: Print Your Clipboard in Terminal

Its twin command, pbpaste, does the reverse—it prints whatever you last copied into Terminal or saves it into a new file:

# Save whatever is on your clipboard into a text file
pbpaste > saved-note.txt

3 Things to Remember

  • open . opens Finder here: Never waste time clicking through nested folders in Finder again.
  • Pipe to pbcopy to copy cleanly: It copies exact text without extra spaces or mouse-drag mistakes.
  • pbpaste brings clipboard text back: Great for quickly saving copied notes into a file.