Copy command output

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

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.

Open full demonstration ↗