Copy command output

Device

Apps

command | pbcopy

  • Illustration only: no shell command is executed.
  • Pipe sample output to pbcopy.
  • The output is now clipboard text.
  • Paste into a text field to use the copied output.
Speed 1.25×

Ready

Official documentation · Apple Support

Practice

Pipe pwd to the clipboard

About 45 seconds

Run `pwd | pbcopy`, then paste into Notes. Confirm the path appears.

Done when: Notes contains the current working directory path.

Why it works

Terminal to Notes to Email in one step.

Included in Terminal clipboard fundamentals

Sources
Open full demonstration ↗