Sharing Files From the Command Line

Did you ever want to share files from the shell? Now you can just upload and download files without complexity from your shell or browser. Just upload the file using by dropping it to this page, curl or any other command using PUT to our server. We’ll return a shareable url, which will expire within 2 weeks.

http://transfer.sh/

Uploadcurl -vv --upload-file ./hello.txt http://transfer.sh/hello.txt
 
Create a share alias (add it to .bashrc):transfer() { curl --upload-file ./$1 http://transfer.sh/$1; }
alias transfer=transfer

Now you can just use transfer hello.txt to upload the file!
 
Download
curl -L http://transfer.sh/66nb8/hello.txt
 
Share
You can share files just by emailing the url.


http://curl.io/
Share your files from your Terminal

Specify the path of your file [Normal Method]
/var/backups/YourFile.tar.gz

Last login : Wed, Sep 3, 2014 12:22 PM on ttyp1
Welcome to cURL.io!

1) Write the path of your file you desire to send above
2) And copy the command below and past it into your shell or terminal
*) Your file can be up to 5GB, and will be deleted after 4 hours
Then paste the command into your shell

curl.io:~# curl -F "file=@/var/backups/YourFile.tar.gz" \
http://curl.io/send/xcww11lq

 
Secure method (recommended)
curl.io:~# gpg -c "/var/backups/YourFile.tar.gz" && curl -F "file=@/var/backups/YourFile.tar.gz.gpg" \
http://curl.io/send/xcww11lq

 

g33kadmin

I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.