Docu review done: Wed 31 Jul 2024 02:41:23 PM CEST
xclip
Table of content
Commands and Descriptions
Command | Descritpion |
---|---|
xclip -sel clip | copies stdin into clipboard |
xclip-copyfile [file1] [file2] [fileN] | copies files into X clipboard, recursing into directoires |
xclip-cutfile [file1] [file2] [fileN] | copies the files, but also deletes them afterwards |
xclip-pastefile | poste the files out of the clipboard |
Copy a file
This will not copy the content of the file into your clipboard! The
xclip-copyfile
is only working internal in linux, so e.g. over vbox it can not transfere it to the host/subsystem
xclip
is not only able to copy stdin data into clipboard, it is also able to copy full files.
Copy file:
$ xclip-copyfile /etc/hosts
Past file to current dir:
$ cd /tmp
$ xclip-pastefile
Copy a directory
xclip
is also able to deal with a directory structure:
$ xclip-copyfile ~/.vim
And to paste it again use xclip-pastefile
as shown above in Copy a file