Ctrl-c and ctrl-v in terminal
Copy from file to clipboard: cat file | xclip -sel c
Pasting from clipboard to file:
xclip -sel c -out > file
Written by Michiel
Related protips
3 Responses

Many terminals let you just use ctrl+shift+c
and ctrl+shift+v
as copy and paste (gterm/konsole/xterm, for example...)
over 1 year ago
·

Really nice!
I also use sometimes [Shift]+[Ins] to paste in console.
over 1 year ago
·

I also use sometimes [Shift]+[Ins] to paste in console.
this and [Ctrl] + [Ins]
to copy (not limited to console, works in nearly every window)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Terminal
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#