Last Updated: February 25, 2016
·
1.063K
· michie1

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

3 Responses
Add your response

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 ·