Neat terminal trick 12-08-2016, 12:16 AM
#1
I find myself copy-pasting from my terminals (in both Windows and Linux) fairly often, whether to google errors or grab some sample output from a program. I also often find myself screwing this up and missing a few characters or performing the wrong action (i.e., hitting Ctrl+C on Linux because I'm used to Cygwin), but no more!
On windows, piping a command's output the the "clip" command will copy both standard output and standard error streams to your clipboard, and the same goes on linux with the "xclip" command, provided you have the X11 GUI installed somewhere (fun fact: also works over SSH).
Example:
On windows, piping a command's output the the "clip" command will copy both standard output and standard error streams to your clipboard, and the same goes on linux with the "xclip" command, provided you have the X11 GUI installed somewhere (fun fact: also works over SSH).
Example:
Code:
; Windows
> echo some text and stuff|clip
# Linux
$ cat some.file|xclip
(This post was last modified: 12-08-2016, 05:05 AM by Inori.)
It's often the outcasts, the iconoclasts ... those who have the least to lose because they
don't have much in the first place, who feel the new currents and ride them the farthest.
don't have much in the first place, who feel the new currents and ride them the farthest.















![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)
![[Image: twvnig.gif]](https://my.mixtape.moe/twvnig.gif)

![[Image: inkexplosion.jpg]](http://i0.wp.com/techverse.net/wp-content/uploads/2013/09/inkexplosion.jpg)




![[Image: 9H83e18.png]](https://i.imgur.com/9H83e18.png)