Skip to content

Instantly share code, notes, and snippets.

@arashatt
Created March 29, 2024 23:55
Show Gist options
  • Save arashatt/5ceb25b4972351440ab54fd87da57961 to your computer and use it in GitHub Desktop.
Save arashatt/5ceb25b4972351440ab54fd87da57961 to your computer and use it in GitHub Desktop.
how to copy a file into clipboard in linux without selecting text with mouse
xclip -selection c < file_name.extension
sometimes the content of the file get too big and it's not easy to select the text you want to copy with mouse. this command
is a handy way to do that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment