fpaste(1) - Linux man page
Name
fpaste - A cli frontend for the fpaste.org pastebinSynopsis
fpaste [OPTION]... [FILE]...Description
Options
- --version
- show program's version number and exit
- -h, --help
- show help message and exit
- -n "NICKNAME"
- your nickname; default is ""
- -d "DESCRIPTION"
- description of paste; default appends filename(s)
- -l "LANGUAGE"
- language of content for syntax highlighting; default is "text"; use "list" to show all 160 supported langs
- -x "EXPIRES"
- time before paste is removed; default is 86400 seconds; valid options: 3600, 10800, 43200,
86400
- -i, --clipin
- read paste text from current X clipboard selection
- -o, --clipout
- save returned paste URL to X clipboard
- --selection=CLIPBOARD
- 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
- --printonly
- print paste, but do not send
- --confirm
- print paste, and prompt for confirmation before sending
Examples
- Paste file foo.txt at fpaste.org
- fpaste foo.txt
- Paste output of ifconfig to fpaste.org with description "my network config"
- ifconfig | fpaste -d "my network config"
- Paste mycode.py to fpaste.org with description as "problem with foo", nickname "codemonkey", and language "python"
- fpaste -n codemonkey -d "problem with foo" -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 foo.txt
fpaste <(lsusb) <(lspci)fpaste <(fdisk -l) /etc/grub.conf -d "grub problem"
(fdisk -l ; cat /etc/grub.conf) | fpaste -d "grub problem"(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. fpaste.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://fedorahosted.org/fpaste/newticketor to: Jason 'zcat' Farrell <farrellj AT gmail DOT com>.