1fpaste(1) fpaste(1)
2
3
4
6 fpaste - A cli frontend for the paste.fedoraproject.org pastebin
7
9 fpaste [OPTION]... [FILE]...
10
12 It is often useful to be able to easily paste text to the Fedora Paste‐
13 bin at http://paste.fedoraproject.org and this simple utility will do
14 that and return the resulting URL so that people may examine the out‐
15 put. This can hopefully help folks who are for some reason stuck with‐
16 out a graphical interface, working remotely, or any other reason they
17 may be unable to paste something into the pastebin using a web browser.
18
20 --version
21 show program's version number and exit
22
23 -h, --help
24 show help message and exit
25
26 -t "TITLE", --title="TITLE"
27 title for paste; default is UNTITLED
28
29 -t "AUTHOR", --title="AUTHOR"
30 author name; empty by default
31
32 -l "LANGUAGE"
33 language of content for syntax highlighting; default is "text";
34 use "list" to show all 200+ supported langs
35
36 -x "EXPIRES"
37 life of paste in minutes; default is 1 day (maximum)
38
39 -r, --private
40 make paste private; default is yes; valid options: 1 (yes), 0
41 (no)
42
43 -i, --clipin
44 read paste text from current X clipboard selection [requires
45 xsel]
46
47 -o, --clipout
48 save returned paste URL to all the clipboards i.e primary, sec‐
49 ondary and clipboard
50
51 --input-selection=CLIPBOARD
52 specify which X clipboard to use. valid options: "primary" (de‐
53 fault; middle-mouse-button paste), "secondary" (uncommon), or
54 "clipboard" (ctrl-v paste)
55
56 -w, --wayland-clipin
57 read paste text from Wayland selection [requires: wl-clip]
58
59 --fullpath
60 use pathname VS basename for file description(s)
61
62 --pasteself
63 paste this script itself
64
65 --sysinfo
66 paste general system information
67
68 --btrfsinfo
69 paste btrfs related system information
70
71 --printonly
72 print paste, but do not send
73
74 --confirm
75 print paste, and prompt for confirmation before sending
76
78 Paste file foo.txt at paste.fedoraproject.org
79
80 fpaste foo.txt
81
82 Paste output of ifconfig to paste.fedoraproject.org with description
83 "my network config"
84
85 ifconfig | fpaste
86
87 Paste mycode.py to paste.fedoraproject.org with description as "problem
88 with foo" and language "python"
89
90 fpaste -l python mycode.py
91
92 Paste mouse-selected text from the primary X selection clipboard, and
93 then overwrite the same clipboard with the returned fpaste URL
94
95 fpaste -io
96
97 To manually paste clipboard contents, run fpaste without file arguments
98 so that it waits for input, then paste using mouse middle-click,
99 <Ctrl-V>, or other, then press <Enter> followed by <Ctrl-D> to finish
100 (EOF).
101
102 To paste the output of more than one program and/or file at a time, use
103 the following example forms:
104
105 (lsusb ; lspci) | fpaste
106 fpaste <(lsusb) <(lspci)
107
108 fpaste <(fdisk -l) /etc/grub.conf
109 (fdisk -l ; cat /etc/grub.conf) | fpaste
110
111 (uname -a ; yum repolist) | fpaste
112
113 Gather and paste various information about the running system. The info
114 collected should be practically anonymous, and you may use the --print‐
115 only or --confirm options to preview what would be sent. paste.fedo‐
116 raproject.org URLs are also practically anonymous ([a-zA-Z0-9]**4 ==
117 14,776,336 combinations), so you may also preview it instead before
118 giving the link out.
119
120 fpaste --sysinfo
121 fpaste --sysinfo --confirm
122 fpaste --sysinfo --printonly | less
123
125 Report bugs to: https://pagure.io/fpaste/new_issue
126 or to: Jason 'zcat' Farrell <farrellj AT gmail DOT com> and Ankur Sinha
127 'FranciscoD' <ankursinha AT fedoraproject DOT org>.
128
130 Fedora Unity
131
132
133
134
135Fedora Unity version 0.4.4.0 fpaste(1)