I would like to copy a file to the clipboard with the terminal, like when right clicking a file and selecting "copy" in the gui. Someting like "cp test.txt" (without a destination) so whenever I want, I could right click and paste the file (or files) in the gui. Thank you
- No file in clipboard
- What I am trying to do: (copy a file to the clipboard with the terminal). Exactly like right clicking a file and selecting copy. (test.txt already on desktop)
- Now the file is in the clipboard and I can paste it anywhere
- File is pasted
Update this is exactly what I want to do only in Linux instead of Windows

