How to copy an output on a GNOME terminal to clipboard from command line.
I'd like to be able to paste text from my console textfiles smoothly to Firefox.
|
How to copy an output on a GNOME terminal to clipboard from command line. I'd like to be able to paste text from my console textfiles smoothly to Firefox.
| |||
|
feedback
|
|
You can highlight the text then right click and select copy, or pipe it to xclip: some-command | xclip xclip may or may not be available depending on your distribution. | |||
|
feedback
|
|
You can also just mark the terminal output you want to copy and it is copied to your clipboard automatically. | |||
feedback
|
|
After selecting the text, press Ctrl-Shift-C to copy it to the clipboard. The extra Shift is required as Ctrl-Cis already used in shells. Similarly, to paste, press Ctrl-Shift-V. You can also just select it then middle-click in Firefox to paste it. This uses the cut buffer, which is slightly different to the clibpoard. Bonus gnome-terminal tip - Ctrl-click a url to automatically open it in your default browser. | |||
|
feedback
|