How-To: Sharing Terminal CLI output to the Web

I see this ALL the time.  User enters forum, presents problem with no details.  Commenters ask for output of “command -this, command -that,” as user happily posts hundreds of lines of shoddy code.  Sure, you can post with “code” tags, but often, it is very hand to have a link you can give someone to a large piece of output, or a permanent link to your code.

…and that is the norm, but it is highly useful to know how to output your Terminal activity to the world wide web of sports…errrr , www, yes that’s it.  Trust me, I’ve been there, so that’s why I am not showing you what’s up.

Now there are several tools and sites to do this.  I have been always fond of paste bin, so I installed their CLI/Terminal friendly package, named pastebinit. Install this handy tool by inputting this into the Terminal:

sudo apt-get install pastebinit

After this, all you need to do is “pipe” any command or resulting output to pastebininit, and you will get a hand dandy link to share it with the developers, users, groups, or the world! Bwahahaha. Here is an example of it in action:
<&nbsp>

dmesg | tail | pastebinit
http://pastebin.com/V55vBL44 

That’s it!

Till next time,

-Professor

Advertisements

About professorkaos64

www.libregeek.org

Posted on 20130622, in How-To, Quick Tips and tagged , , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s