jump to navigation

Script to Post Terminal Output To Pastebin September 12, 2005

Posted by Carthik in applications, snippets, ubuntu.

Dennis has a neat little python script called pastebin which can be used to automatically and easily paste the output from your terminal to a pastebin site.

A pastebin site is a site where users can post just about anything in text for others to look at. This is handy when it comes to requesting support at the #ubuntu support channel, for example. Suppose someone says “paste the output of lspci” you can use Dennis’ script to do the job for you and point the person to the pasted output from the terminal. If you use the neat little pastebin script, then you can redirect the output from the terminal and have it pasted in the pastebin of your choice without having to do the copying and pasting manually. Neat!

After you install the script, you can use it to
a) Paste standard output:
For example, to paste the output of lspci, do
$ lspci > pastebin

b) Paste output and error messages:
$command >pastebin 2>&1
where “command” is the name of the command for which you want the output and the error messages to be recorded.

and so on… it can make life a lot easier!


1. Jordan T. Cox - September 12, 2005

Just wanted to say, kickass site. Keep the Ubuntu tips coming!

2. ubuntonista - September 13, 2005

You bet!

3. Michael Hehn - January 3, 2007

Hi, my name is Michael and security is very important. In fact, one day I lost all my sites, too. Now, a few months later, I know how to protect myself.
You can have a look at Secure

4. Home - August 17, 2007

Thanks for sharing this information. Really is pack with new knowledge. Keep them coming.

5. seks izle - September 29, 2010

Just wanted to say, kickass site. Keep the Ubuntu tips coming!

6. Blackjack - February 10, 2011

I discovered your blog website on google and check a number of of your early posts. Proceed to maintain up the superb operate. I just extra up your RSS feed to my MSN News Reader. Seeking forward to reading more from you later on!…

7. life in prison - August 15, 2011

Are you clairvoyant? You must be because your blogging so correctly satisfies all the questions I have in mind on this topic. I only put a couple of phrases in the internet search engine and I am very fortunate your blog sprang up.

8. Laticia T. Harding - September 26, 2014

I couldn’t resist commenting. Well written!

9. Leilani M. Maris - October 2, 2014

Hi to every one, it’s actually a good for me to go to see this web page, it consists of helpful Information.

10. Bertie W. Fredericksen - October 6, 2014

Very good blog! Do you have any hints for aspiring writers?

I’m planning to start my own site soon but I’m a little lost on everything.

Would you suggest starting with a free platform like WordPress or go
for a paid option? There are so many options out there that I’m completely overwhelmed ..
Any ideas? Cheers!

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 )

Connecting to %s

%d bloggers like this: