Summary
pbcopy is a tool used to copy data from STDIN to the clipboard on macOS.
1
It can be used to copy a list of files in the home directory, the contents of a file, and part of a file.
1
It can also be used to copy the output of a command right into the clipboard
2
, or to copy content of a file to the clipboard.
3
Additionally, pbcopy can take the contents of stdin and put them in the clipboard
4
, and it can be used to use Clipboard in Terminal without ever raising your fingers from the keys.
5
According to
See more results on Neeva
Summaries from the best pages on the web
Summary
pbcopy is a tool used to copy data from STDIN to the clipboard on macOS. It takes the standard input and places it in the specified pasteboard, with the input being placed as ASCII data unless it begins with the Encapsulated PostScript (EPS) or Rich Text Format (RTF) file header. Examples of how to use pbcopy include copying a list of files in the home directory, the contents of a file, and part of a file.
pbcopy Man Page - macOS - SS64.com
ss64.com
Summary
pbcopy will take the contents of stdin (usually text, but could be any stream of data) and put them in the clipboard. So, anything you pipe into pbcopy will end up in the clipboard, so you can paste it into a different application.
(NeXTSTEP was the operating system that Mac OS X was originally based on.
Terminal and the Clipboard – Scripting OS X
scriptingosx.com
Summary
If you do much work at all in the Terminal, there are two macOS commands you should know about but probably don’t. They’re called pbcopy and pbpaste , and they’re extremely powerful. These two commands let you use Clipboard in Terminal without ever raising your fingers from the keys.
macOS: Use Clipboard in Terminal Without a Mouse - The Mac Observer
macobserver.com