fpaste - Man Page

manual page for fpaste 0.4.5.1

Synopsis

fpaste [OPTION]... [FILE]...

Description

Send text file(s), stdin, or clipboard to the Fedora community pastebin at https://paste.centos.org and return the URL.

It is often useful to be able to easily paste text to the Fedora Pastebin at http://paste.fedoraproject.org and this simple utility will do that and return the resulting URL so that people may examine the output. This can hopefully help folks who are for some reason stuck without a graphical interface, working remotely, or any other reason they may be unable to paste something into the pastebin using a web browser.

Examples: fpaste file1.txt file2.txt dmesg | fpaste (prog1; prog2; prog3) | fpaste fpaste --sysinfo --confirm fpaste -t "debug output" -l python foo.py

Options

--version

show program's version number and exit

-h,  --help

show this help message and exit

paste.fedoraproject.org Options:

-t "TITLE", --title="TITLE"

title of paste; defaults to UNTITLED

-a "AUTHOR", --author="AUTHOR"

author name; empty by default

-r PRIVATE, --private=PRIVATE

make paste private; defaults to 1

-l "LANGUAGE"

language of content for syntax highlighting; default is "text"; use "list" to show all 239 supported langs

-x LIFE

life of paste in minutes; default is 1 day (maximum)

Input/Output Options:

-i,  --clipin

read paste text from current X clipboard selection [requires: xsel]

-w,  --wayland-clipin

read paste text from Wayland selection [requires the wl-clipboard package]

-o,  --clipout

save returned paste URL to all available clipboards

--input-selection=CLIP

specify which X clipboard to use. valid options: "primary" (default; middle-mouse-button paste), "secondary" (uncommon), or "clipboard" (ctrl-v paste)

--fullpath

use pathname VS basename for file description(s)

--pasteself

paste this script itself

--sysinfo

paste system information

--btrfsinfo

paste btrfs related system information

--printonly

print paste, but do not send

--confirm

print paste, and prompt for confirmation before sending

--raw-url

print raw url

Examples

Paste file foo.txt at paste.fedoraproject.org

fpaste foo.txt

Paste output of ifconfig to paste.fedoraproject.org with description "my network config"

ifconfig | fpaste

Paste mycode.py to paste.fedoraproject.org with description as "problem with foo" and language "python"

fpaste -l python mycode.py

Paste mouse-selected text from the primary X selection clipboard, and then overwrite the same clipboard with the returned fpaste URL

fpaste -io

To manually paste clipboard contents, run fpaste without file arguments so that it waits for input, then paste using mouse middle-click, <Ctrl-V>, or other, then press <Enter> followed by <Ctrl-D> to finish (EOF).
To paste the output of more than one program and/or file at a time, use the following example forms:

(lsusb ; lspci) | fpaste
fpaste <(lsusb) <(lspci)

fpaste <(fdisk -l) /etc/grub.conf
(fdisk -l ; cat /etc/grub.conf) | fpaste

(uname -a ; yum repolist) | fpaste

Gather and paste various information about the running system. The info collected should be practically anonymous, and you may use the --printonly or --confirm options to preview what would be sent. paste.fedoraproject.org URLs are also practically anonymous ([a-zA-Z0-9]**4 == 14,776,336 combinations), so you may also preview it instead before giving the link out.

fpaste --sysinfo
fpaste --sysinfo --confirm
fpaste --sysinfo --printonly | less

Bugs

Report bugs to: https://pagure.io/fpaste/new_issue
or to: Jason 'zcat' Farrell <farrellj AT gmail DOT com> and Ankur Sinha 'FranciscoD' <ankursinha AT fedoraproject DOT org>.

Author

Fedora Unity

Info

March 2024 fpaste 0.4.5.1