Share a file from command line

Share a file from command line

transfer a file from the terminal without having to use ssh or scp, it is possible with transfer.sh. You may just need curl to perform a file transfer. Note that tranfer.sh puts your file in its server and gives you an access link that you will then share with whoever you want so that they can download your file. In this example, we will transfer a zip file named test.zip.

$ ls
test.zip
$ curl --upload-file test.zip https://transfer.sh
https://transfer.sh/Lr92ke/test.zip

You can now share this link : transfer.sh/Lr92ke/test.zip.

Command line options also exist, test and have fun

Resource :

transfer.sh