Command-Line Copy&Paste With xclip (Debian/Ubuntu)
Command-Line Copy&Paste With xclip (Debian/Ubuntu)Version 1.0 xclip is a command line interface to the X11 clipboard. It allows you to put the output of a command directly into the clipboard so that you don't have to copy&paste from the terminal manually (which can be a tedious task especially if the output is very long). It also allows you to put the contents of a file directly into the clipboard. I do not issue any guarantee that this will work for you!
1 Installing xclipxclip is available as a package for Debian and Ubuntu so that it can be installed with aptitude. Open a terminal (Applications > Accessories > Terminal)...
... and run: sudo aptitude install xclip
2 Using xclipTo put the output of a command into the clipboard, we have to pipe the command into xclip, e.g. like this: ls -la | xclip This puts the output of the ls -la command into the clipboard, and you can now paste the output into any other program (e.g. a text editor) by pressing the middle button of your mouse: To put the whole contents of a file (e.g. /etc/apt/sources.list) into the clipboard, you'd use xclip as follows: xclip /etc/apt/sources.list You can use xclip as well to output the contents of the clipboard: xclip -o And to save the contents of the clipboard to a file (e.g. ~/test.txt), you'd call xclip as follows: xclip -o > ~/test.txt To learn more about xclip, take a look at its man page: man xclip
3 Links
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning










Recent comments
9 hours 21 min ago
11 hours 22 min ago
14 hours 33 min ago
16 hours 53 min ago
18 hours 3 min ago
19 hours 21 min ago
23 hours 25 min ago
1 day 2 hours ago
1 day 3 hours ago
1 day 18 hours ago