XCLIP-COPYFILE(1)
π XCLIP-COPYFILE(1) β the General Commands Manual page, but make it a group chat π
okay so bestie, welcome to the <rainbow>xclip-copyfile</rainbow> manual page. This is from the General Commands Manual section, and it's about moving files around using the X clipboard. Yes, the clipboard. Like, the thing you copy text into. But for files. Iconic behavior honestly. π
β¨ NAME β¨
xclip-copyfile, xclip-cutfile, xclip-pastefile β copy and move files via the X clipboard π¦
πΈ SYNOPSIS πΈ
xclip-copyfile [-p] FILES...
xclip-cutfile [-p] FILES...
xclip-pastefile
π DESCRIPTION π
xclip-copyfile copies files into the X clipboard, and it recurses into directories. So like, if you hand it a folder, it does NOT chicken out β it goes all the way in. π§
xclip-cutfile copies the files, but also deletes them afterwards. So it's copy and yeet. Careful with that one bestie, that's real. π
-pβ preserve path formation β¨
xclip-pastefile pastes the files out of the clipboard. That's the whole job. Main character energy, zero flags. π
π EXAMPLES π
Copying a file to a remote host
[maggie.lkpg.cendio.se ~]$ echo "A file created on ${HOSTNAME}" > file1
[maggie.lkpg.cendio.se ~]$ xclip-copyfile file1
[sofie.homeip.net ~/doc]$ xclip-pastefile
file1
[sofie.homeip.net ~/doc]$ cat file1
A file created on maggie.lkpg.cendio.se
look at that, the file teleported across hosts and it didn't even lose its vibe π«
Copying an entire tree structure
[sofie.homeip.net ~]$ xclip-copyfile doc
[maggie.lkpg.cendio.se ~/tmp]$ xclip-pastefile
doc/
doc/letter-mom-april.txt
doc/file1
doc/letter-dad-march.txt
whole directory tree, pasted out, every file accounted for. she ate. π
Copying files with preserved path information
[maggie.lkpg.cendio.se ~]$ xclip-copyfile -p /etc/sysconfig/grub
tar: Removing leading `/' from member names
[sofie.homeip.net ~/tmp]$ xclip-pastefile
etc/sysconfig/grub
[sofie.homeip.net ~/tmp]$ ls etc/sysconfig/grub
etc/sysconfig/grub
ngl thattar: Removing leading/' from member namesline is just part of the show, bestie.-pkeeps the path formation, so you getetc/sysconfig/grub` instead of just the bare filename. π«Ά
Moving files
[sofie.homeip.net ~]$ ls letter-brother-may.txt
letter-brother-may.txt
[sofie.homeip.net ~]$ xclip-cutfile letter-brother-may.txt
[sofie.homeip.net ~]$ ls letter-brother-may.txt
ls: cannot access 'letter-brother-may.txt': No such file or directory
[sofie.homeip.net ~]$ cd doc
[sofie.homeip.net ~/doc]$ xclip-pastefile
letter-brother-may.txt
see how the file just... left? that's xclip-cutfile doing its thing. copy, then delete, then paste somewhere else. it's giving moving truck but make it clipboard. πβ¨
π AUTHORS π
This manual page was written by Maximilian Gass <mxey@cloudconnected.org> for the Debian project. It may be used for everything else, of course. π
and that's the whole page bestie, we're done here π this was the XCLIP-COPYFILE(1) page from the General Commands Manual β go forth and copy files across the clipboard, no cap, fr fr. π
π¦ where this page comes from
- alpine 3.24: xclip-doc 0.13-r3 Β· GPL-2.0-or-later
- arch rolling: xclip 0.13-6 Β· GPL-2.0-only
- debian bookworm: xclip 0.13-2 Β· GPL-2.0-or-later
- debian trixie: xclip 0.13-4 Β· GPL-2.0-or-later
- epel 10: xclip 0.13-24.git11cba61.el10_1 Β· GPL-2.0-or-later
- epel 9: xclip 0.13-17.git11cba61.el9 Β· GPLv2+
- fedora 43: xclip 0.13-25.git11cba61.fc43 Β· GPL-2.0-or-later
- fedora 44: xclip 0.13-26.git11cba61.fc44 Β· GPL-2.0-or-later
- nixos 26.05: xclip 0.13
- nixpkgs unstable: xclip 0.13
- opensuse-leap 16.0: xclip 0.13+git20220129-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xclip 0.13+git20220129-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xclip 0.13+git20220129-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xclip 0.13+git20220129-160000.2.2 Β· GPL-2.0-or-later
- ubuntu jammy: xclip 0.13-2 Β· GPL-2.0-or-later
- ubuntu noble: xclip 0.13-3 Β· GPL-2.0-or-later
- ubuntu questing: xclip 0.13-4
- ubuntu resolute: xclip 0.13-4build1 Β· GPL-2.0-or-later
- ubuntu stonking: xclip 0.13-4build1 Β· GPL-2.0-or-later
- Copyright (C) 2009 Maximilian Gass
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms