• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux How to upload file from dedicated/vps and get link

KearaOT

KearaOT Custom Mid/High
Joined
Feb 4, 2018
Messages
129
Reaction score
67
Location
UK
Hi, sometimes you may need to get output of something from your dedicated/vps, maybe a crashlog or a text, or smth like that

I've found a way to do it easily. With this you can upload that output and get a link, just like hastebin/pastebin does

termbin.com - terminal pastebin

How to use?

Just a random text:
Code:
echo just testing!  | nc termbin.com 9999

With files
Code:
cat ~/some_file.txt | nc termbin.com 9999


To make your life easier, you can add alias to your .bashrc on Linux and .bash_profile on Mac OS X. Just remember to reset your terminal session after that.

on Linux:
Code:
echo 'alias tb="nc termbin.com 9999"' >> .bashrc

on Mac
Code:
echo 'alias tb="nc termbin.com 9999"' >> .bash_profile

so now instead to type "nc termbin.com 9999" you only will write tb
Code:
echo less typing now! | tb

There is only one thing you need to use this service - netcat.To check if you already have it installed, type in terminal nc.

Netcat is available on most platforms, including Windows, Mac OS X and Linux

Of course, is open source :D solusipse/fiche
 
Last edited:
Back
Top