Copy to Clipboard Shell Command

by Tom

Here is a neat OSX Terminal tip. You can pipe command line output to the system clipboard by using the pbcopy command. To see it in use, open Terminal then type:

ls -al | pbcopy

Then open your favorite text editor and press command-v. The output from the command you typed is now pasted into your text document!  I should do more of these since so many OS X users are unfamiliar and perhaps even a little intimidated by using Terminal, which is unfortunate because there are so many interesting little bits of functionality accessible to you in Terminal if you will just take the plunge.

If you found this helpful or interesting, please share it!

{ 1 comment… read it below or add one }

yuletide

Sweet! Thanks for the tip :-)

Leave a Comment

Previous post:

Next post: