Putting a Text File in the Clipboard

Saves some mouse work when you’re already jamming at the command line and need to push text in to the clipboard:

Install xclip: sudo apt-get install xclip
$ xclip -sel clip < ~/devel/my_code.c

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.