User Tools

Site Tools


pastebinit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pastebinit [2019/02/08 23:31]
pastebinit [2017/11/11 22:47] (current)
Line 1: Line 1:
 + 
 +===== Pastebinit ===== 
 + 
 +Pastebinit is a command line program that can paste the contents of a file or command output to a pastebin.
 + 
  
 +a pastebin is a website to share text quickly with people, it is great to share conf, log or text files.
 + 
 +Often on IRC you are not allowed to paste huge amounts of text, it goes against general guidelines and is frankly rude.
 + 
 +===== How to install =====
 +Make sure you have admin privellages then using a virtual console or Gnome-terminal type:
 + 
 +<​code>​
 +sudo apt-get install pastebinit
 +</​code>​
 + 
 +After authenticating with your user password answer yes and with some luck you will now have pastebinit installed.
 +
 +===== Basic use of pastebinit =====
 + 
 +Try using pastebinit with cat, | or pastebinit itself.
 + 
 +<​code>​
 +pastebinit filename
 +</​code>​
 +That in just a few seconds will return a url displaying the file you specified on the page.
 + 
 +<​code>​
 +cat filename | pastebinit
 +</​code>​
 + 
 +That does the same thing but using a different method
 + 
 +An example to return a link that lists any MP#'s in your current working directory.
 + 
 +<​code>​
 +ls -1 *.mp3 | pastebinit
 +</​code>​
 +
 + 
 +Some IRC clients support the /exec command where you can type the shell command directly into your client to have the URL appear on your screen.
 + 
 +<​code>​
 +/exec cat filename | pastebinit
 +</​code>​
 + 
 +Enjoy and spread the love.