1XCLIP-COPYFILE(1) General Commands Manual XCLIP-COPYFILE(1)
2
3
4
6 xclip-copyfile, xclip-cutfile, xclip-pastefile - copy and move files
7 via the X clipboard
8
10 xclip-copyfile [-p] FILES...
11
12 xclip-cutfile [-p] FILES...
13
14 xclip-pastefile
15
17 xclip-copyfile copies files into the X clipboard, recursing into direc‐
18 tories.
19
20 xclip-cutfile copies the files, but also deletes them afterwards.
21
22 -p preserve path formation
23
24
25 xclip-pastefile pastes the files out of the clipboard
26
28 Copying a file to a remote host
29
30 [maggie.lkpg.cendio.se ~]$ echo "A file created on ${HOSTNAME}" > file1
31 [maggie.lkpg.cendio.se ~]$ xclip-copyfile file1
32 [sofie.homeip.net ~/doc]$ xclip-pastefile
33 file1
34 [sofie.homeip.net ~/doc]$ cat file1
35 A file created on maggie.lkpg.cendio.se
36
37
38 Copying an entire tree structure
39
40 [sofie.homeip.net ~]$ xclip-copyfile doc
41 [maggie.lkpg.cendio.se ~/tmp]$ xclip-pastefile
42 doc/
43 doc/letter-mom-april.txt
44 doc/file1
45 doc/letter-dad-march.txt
46
47
48 Copying files with preserved path information
49
50 [maggie.lkpg.cendio.se ~]$ xclip-copyfile -p /etc/sysconfig/grub
51 tar: Removing leading `/' from member names
52 [sofie.homeip.net ~/tmp]$ xclip-pastefile
53 etc/sysconfig/grub
54 [sofie.homeip.net ~/tmp]$ ls etc/sysconfig/grub
55 etc/sysconfig/grub
56
57
58 Moving files
59
60 [sofie.homeip.net ~]$ ls letter-brother-may.txt
61 letter-brother-may.txt
62 [sofie.homeip.net ~]$ xclip-cutfile letter-brother-may.txt
63 [sofie.homeip.net ~]$ ls letter-brother-may.txt
64 ls: cannot access letter-brother-may.txt: No such file or directory
65 [sofie.homeip.net ~]$ cd doc
66 [sofie.homeip.net ~/doc]$ xclip-pastefile
67 letter-brother-may.txt
68
69
71 This manual page was written by Maximilian Gass <mxey@cloudcon‐
72 nected.org> for the Debian project. It may be used for everything else,
73 of course.
74
75
76
77 XCLIP-COPYFILE(1)