February 11, 2013 0

access system clipboard from command line

By in linux, ubuntu, Ubuntu 12.04

wanting to copy something from command line or maybe a file you can use xclip

eg. copy your public ssh key from id_rsa.pub to clipboard directly from command line:

cat .ssh/id_rsa.pub | xclip -selection clipboard

or

cat .ssh/id_rsa.pub | xclip -selection c

source: http://askubuntu.com/questions/110347/command-line-clipboard-access

Tags: ,


Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/mgis.dk/about/wp-includes/class-wp-comment-query.php on line 399

Leave a Reply