I have not yet found an easy solution to copy your file to a clipboard in Linux, similarly as in Mac by
cat file | pbcopy
I tried to use the following command in Vim unsuccessfully
:copy 1,9999999
to copy the file.
How can you copy a file fast to your clipboard in Linux such that you can then paste it to dpaste?
Open the file that you want to copy items from. Select the first item that you want to copy, and press CTRL+C. Continue copying items from the same or other files until you have collected all of the items that you want. The Office Clipboard can hold up to 24 items.
To copy files and directories use the cp command under a Linux, UNIX-like, and BSD like operating systems. cp is the command entered in a Unix and Linux shell to copy a file from one place to another, possibly on a different filesystem.
xclip -selection c will send data to the clipboard that works with Ctrl + C , Ctrl + V in most applications. If you're in Linux terminal mode (no X) then look into gpm or Screen which has a clipboard. Try the Screen command readreg . Under Windows 10+ or Cygwin, use /dev/clipboard or clip .
does xclip suits you?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With