We all know we can use the xclip Linux command-line interface to X selections, aka clipboard. The xclip command to copy any Linux command output to the Linux clipboard directly. For example, the following will copy text Hello World to your clipboard, and you can pate it using the Ctrl+v/Ctrl+Shift+V keyboard in other apps:echo "Hello World" | xclip -sel clip
But, I want to copy a file (or recursing into directories and copy everything) to the clipboard in Linux and then paste it somewhere else. How do you copy a file to the clipboard in Linux?
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post How do I copy a file to the clipboard in Linux? appeared first on nixCraft.