Share your console output and it will come back to you more than once

    Faced with such a task, someone needs to pass the output value of their console or some source code or something else. Like email, blog? .. In Linux, it turns out there is a toolkit that is able to maximally ease this task and its name is pastebinit.

    Here is what the beloved Debian produces in the description of this package:
    $ aptitude show pastebinit
    Package: pastebinit
    Condition: installed
    Automatically installed: no
    Version: 0.11.2-1
    Priority: Optional
    Section: misc
    Escort: Rolf Leggewie 
    Unpacked Size: 352k
    Dependencies: python
    Description: command-line pastebin client
     pastebinit is a command-line tool to send data to a "pastebin", a website which allows its users to upload snippets of text for public viewing.
    Website: http://launchpad.net/pastebinit/

    After this package is installed, any console output can be redirected to pastebinit and get a link by which you can look at the result.
    $ cat sample.c | pastebinit -
    http://pastebin.com/f669ae79c

    By clicking on the specified link we will see everything that is displayed on the console.
    By the way, if you just want to share the contents of a text file or source, you can simply do this:
    $ pastebinit ./sample2.c
    http://pastebin.com/f44900e28

    It should also be noted that the service can use not only pastebin.com. If you look at man pastebinit then in the SUPPORTED PASTEBINS section you can see a list of the default alternative servers available. In order to use them, specify the server you like through the -b option, for example like this:
    $ pastebinit -b http://yourpaste.net ./tania03.c 
    http://yourpaste.net//4609


    ps : I stumbled upon this service almost by accident. I got acquainted. Appreciated. I decided to share my find with the community. You never know, but suddenly someone else will come in handy :)

    Also popular now: