[HowTo] use public command-line pastebin services without installing anything!

Sometimes we might want to easily share terminal output.

While this can be accomplished directly in the forums or manually through websites like pastebin, there also exist a number of open services that allow you to paste and share directly from the command line by using tools you already have installed.

This is great for many situations, including troubleshooting from a non-graphical boot, or simply very large outputs. Here I will share a few examples and how to use them.

Services and Examples:

0x0.st

<command> | curl -F 'file=@-' https://0x0.st

paste.c-net.org

<command> | curl -s --data-binary @- 'https://paste.c-net.org/'

clbin.com

<command> | curl -F 'clbin=<-' https://clbin.com

ix.io

<command> | curl -F 'f:1=<-' ix.io

sprunge.us

<command> | curl -F 'sprunge=<-' http://sprunge.us

Aliases and other tricks:

To quasi-install paste.c-net.org pasting and sharing add the following to your bashrc (zshrc untested):

paste.cnet.org .bashrc
pastenet()
{
    local url='https://paste.c-net.org/'
    if (( $# )); then
        local file
        for file; do
            curl -s \
                --data-binary @"$file" \
                --header "X-FileName: ${file##*/}" \
                "$url"
        done
    else
        curl -s --data-binary @- "$url"
    fi
}
pasteget()
{
    local url='https://paste.c-net.org/'
    if (( $# )); then
        local arg
        for arg; do
            curl -s "${url}${arg##*/}"
        done
    else
        local arg
        while read -r arg; do
            curl -s "${url}${arg##*/}"
        done
    fi
}

Then you can use ‘pastenet’ and ‘pasteget’ a few ways:
<command> | pastenet to share output.
pastenet <filepath> <filepath2> to share file(s). 50M limit.
pasteget https://paste.c-net.org/<exampleurl> to download paste.c-net shared content.

Notes and Warnings

  • There is more detailed info at each host, including options like setting expiration time and more.
  • Please dont abuse these services. They are made freely available, so dont knock a good thing.
  • Further stipulations, user and privacy clauses and the like can be found at each project host.
  • Remember to avoid sharing personal information.
    (see this related page for tips: How to provide good information)
16 Likes
How to fix this build error in AUR with gradle (probably related to permissions)
System failure to boot
Facebook button on Manjaro forum's subjects?
Steam runtime crashing
Remove tracker big mistake
Stuck on No irq handler for vector
Pc says Failed to start simple desktop display manager
Boot Stuck at RootLinux: Clean..File..block
Tried messing with drivers, now can't start X server
Trouble booting
Plasma no longer boots after update
Cant play Eve-Online
[HowTo] Use the terminal / TTY
Login screen freezes after entering password
Display server not starting or working after driver update
Can not login anymore
Anyone installed on AMD A9-9420 machine?
Stuck on clean when booting with 2 monitors
No login screen after last update
Manjaro Gnome Live session freeze after a couple of seconds in DE
Cannot log in, no screens found after 2021-11-19 Stable Update
HP Zbook with Hybrid Quatro T500 - not going well with manjaro
After 2021-11 update I cannot boot to DE - NOT nvidia related
21.2pre1: Calamares hangs at 'Configure the hardware'
Stuck on [ OK ] reached target graphical interface
[HowTo] Find error logs
After latest stable update my computer won’t boot
Login screen frozen after entering password
Zsh can't go back in history after some point
Installer doesn't boot with proprietary drivers, stuck at blinking cursor
[HowTo] Provide System Information
Desktop destroyed
Black screen boot after update (Failed to find module ‘nvidia-nvm’)
Pamac builds it on a physical machine but not a virtual machine?
Raydium Touch Screen on Lenovo IdeaPad 3 Not Working
Boots to black screen after latest stable update
Wanting to switch DE with reinstalling but I can't backup my files to a flash drive
Steam runtime and steam native both installed but loads on black screen
Problems booting after some changes