#nc #pastebin #terminbin #terminal #bash #cmd #powershell By using #netcat you can save a text on #termbin . In return you will receive a #url . With #curl you can then retrieve the stored text Store text: ``` echo just testing! | nc termbin.com 9999 ``` For example, the returned url : https://terminbin.com/pofn With ``` curl https://terminbin.com/pofn ``` you will retrieve the stored text BTW: You can obtain Netcat for Windows by downloading #nmap and extracting the installable #exe file with #7zip in the #windows directory and copy the #ncat .exe to ``nc.exe`` Send some text and read it back: ``` $ echo just testing! | nc termbin.com 9999 https://termbin.com/test $ curl https://termbin.com/test just testing! ``` Send file contents: ``` $ cat ~/some_file.txt | nc termbin.com 9999 Send list of files in the current directory: $ ls -la | nc termbin.com 9999 ``` You can also use #pastebin to accomplish the same: [[Pastebin like solution on the Terminal]] [[Unix2Dos and Dos2Unix TEXT in AIX]] [[Windows, Easy Log to TXT file]]