Output to web from terminal

I found myself on a terminal console session with no easy way to get output off the machine. I came across dpaste.com and it worked perfectly.

sudo find /home -type f | curl -s -F "content=<-" http://dpaste.com/api/v2/

In this example, you can replace the find command with whatever you need, and then curl the output as content to the dpaste.com API.

Leave a Reply

Your email address will not be published. Required fields are marked *