Mac terminal pbcopy and pbpaste

In case you didn’t know, there are two commands for managing the clipboard in the Mac terminal:

  • pbcopy to copy
  • pbpaste to paste

FYI, the “pb” stands for pasteboard. These are super nifty if you want to copy the result of a command directly into your clipboard, and of course if you want to paste the last clipboard entry into your terminal window.