Copy Text to the Clipboard from the Command Line
Top Comments
All Comments (6)
-
@gabrielpereca I couldn't manage to post to link, but please check out my channel on how to switch between application windows with Alt+Tab.
-
@gabrielpereca Yes, he is doing that to navigate between terminal and text editor windows. But, there is no need to, you can do it with Alt+Tab. See my video link below. If you can do something without mouse, why use a mouse? It is slow, not efficient, and makes your wrist soar. Mouse shouldn't be used in my opinion if it is not absolutely necessary.
-
@guitar81sb In the video he is using the mouse...
-
@rne1223 I am guessing highlighting that you mentioned requires the using of a mouse which defeats to whole purpose.
-
This is a very useful tip. I took me a while to figure it out myself I wish I had done a youtube search! I use this trick often so I created an alias for it which reduces the copy business to a single letter command: alias c='xsel -b' which goes to ~/.bashrc file of course.
Shift+Ctrl+c to copy from the command line
Shift+Ctrl+v to paste to the command line
You need to highlight the test before you copy and paste
rne1223 2 years ago 3