Github’s Gist service is a very useful one to share text or code snippets quickly. gist.sh is the tool send text to Gist from the cmdline. How about using one of the pastebin services? There are many of them and a nifty utility on Ubuntu lets you dump text to any! We are talking of pastebinit.
pastebinit supports the following services:
- cxg.de
- fpaste.org
- lpaste.net
- p.defau.lt
- paste.debian.net
- paste.drizzle.org
- paste.kde.org
- paste.openstack.org
- paste.pound-python.org
- paste.ubuntu.com (default on Ubuntu)
- paste.ubuntu.org.cn
- paste2.org
- pastebin.com
- pastebin.mate-desktop.org
- pb.daviey.com
- slexy.org
- sprunge.us
Features
- After pasting the text pastebin returns the URL to the user
- Pipe (|) text or use a file name to read as argument
- Paste anonymously or use an account
- Syntax highlighting and text formatting options
Installation
To install pastebinit on Ubuntu, run:
$ sudo apt-get install pastebinit
Usage
Using pastebinit is as easy as it gets:
$ pastebinit file.txt
Other useful options:
-a [author] (default: $USER) -b [pastebin url] (default on Ubuntu is paste.ubuntu.com) -f [format for syntax-highlighting] (default: text) (Reference) -h help screen -i [filename] Use filename for input -l List all the supported pastebins -m [permatag] (default: none) -r [parent post ID] (default: none) -t [title of paste] (default: none) -u [username] (default: none) -p [password] (default: none)
The configuration file is: ~/.pastebinit.xml
Sample configuration:
<pastebinit> <pastebin>http://paste.ubuntu.com</pastebin> <author>Your Name</author> <jabberid>email@gmail.com</jabberid> <format>text</format> </pastebinit>
Similar software
One thought on “Pastebin it from Ubuntu”