- From https://unix.stackexchange.com/a/108494 (which references http://mewbies.com/pastebinit_how_to_pastebin_commnad_line_output_from_terminal_to_pastebin.htm):
There are several services that provide this but 2 that are pretty easy to use from the command line are fpaste
and pastebinit
. These 2 tools link to the sites, paste.fedoraproject.org and pastebin.com.
NOTE: This is a Fedora/CentOS/RHEL only option
If you're using any of the Red Hat based distros you can install the package fpaste which gives you a command line tool for posting content to paste.fedoraproject.org.