Quick Tip! Sharing terminal output with Termbin

#quick-tip#note

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!✨


Continue Reading