Alex Kaloostian

Apple Certified Master Trainer | Systems Integrator | Video Editor | Motion Graphics Artist

Redirecting Terminal output to the clipboard

Leave a comment

Have you ever run a command in the Terminal, then selected and copied it so you can paste it into another app? You can do it much more easily by appending “| pbcopy” at the end of your command.

For example:

uptime | pbcopy

Will run the uptime command, and the results will be automatically added to the clipboard.

Author: alexkaloostian

I'm a video editor, motion graphics designer and Mac IT consultant in the Boston area.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s