You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1.1 KiB

title date
Quick Tip! Sharing terminal output with Termbin 2019-12-31

Ever find yourself in a situation where you simply want to save or share the output of a terminal command? Selecting, copying and pasting text from stdout always feels quite tedious, if you just want to share the contents of a file.

A project called Termbin tries to simplify this process. Just pipe the command you want to save to the following url on port 9999, using Netcat:

echo "Hello, Blog!" | nc termbin.com 9999

Instead of showing the output, it will be forwarded to Termbin and show the URL, under which your output will be available:

➜  blog git:(master) ✗ cat ./some_file.txt | nc termbin.com 9999
https://termbin.com/faos
➜  blog git:(master)

Sure enough, after navigating to https://termbin.com/faos, we will see the contents of some_file.txt. Neat!

Word of Caution

Do not pipe any personal information, credentials or any other private data into termbin. It will be instantly available to the general public, and theres no quick way to remove it.

Happy Pasting!