Quick Tip! Sharing terminal output with Termbin

Dec 31 2019

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

If you enjoyed this post, consider buying me a coffee! Got comments? Drop a mail in my public inbox, or send me a message on Matrix.

Garrit Franke

Random thoughts, tips and rants about software

Public Inbox