Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Copy Text to the Clipboard from the Command Line

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
975 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 30, 2009

Use xclip or xsel at the command line to copy text or files into the X clipboard.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Top Comments

  • 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

see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • @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.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more