is a simple, easy and fast service for file sharing from the command-line. It allows you to upload up to 10GB of data and files are stored for 14 days, for free.


You can maximize amount of downloads and it also supports encryption for security. It supports the local file system (local); together with s3 (Amazon S3), and gdrive (Google Drive) cloud storage services.


It is designed to be used with the Linux shell. In addition, you can preview your files in the browser. In this article, we will show how to use in Linux.


Upload a Single File

To upload a file, you can use the curl program with the --upload-file option as shown.

$ curl --upload-file ./rootadminz.txt


Download a File


To download your file, a friend or colleague can run the following command.

$ curl -o rootadminz.txt 


Upload Multiple Files

You can upload multiple files at once, for example:

$ curl -i -F filedata=@/path/to/rootadminz.txt -F filedata=@/path/to/usernames.txt


Encrypt Files Before Transfer


To encrypt your files before the transfer, use the following command (you must have the gpg tool installed on the system). You will be prompted to enter a password to encrypt the file.

$ cat usernames.txt | gpg -ac -o- | curl -X PUT --upload-file "-"


To download and decrypt the above file, use the following command:

$ curl | gpg -o- > ./usernames.txt


Use Wget Tool also supports the wget tool. To upload a file, run.

$ wget --method PUT –body-file=./rootadminz.txt -O --nv 


Create Alias Command

To use the short transfer command, add an alias to your .bashrc or .zshrc startup file.

$ vim ~/.bashrc
$ vim ~/.zshrc


Then add the lines below in it (you can only choose one tool, either curl or wget).

##using curl
transfer() {
    curl --progress-bar --upload-file "$1"$(basename $1) | tee /dev/null;

alias transfer=transfer
##using wget
transfer() {
    wget -t 1 -qO - --method=PUT --body-file="$1" --header="Content-Type: $(file -b --mime-type $1)"$(basename $1);

alias transfer=transfer


Save the changes and close the file. Then source it to apply the changes.

$ source ~/.bashrc
$ source ~/.zshrc


From now on, you upload a file using the transfer command as shown.

$ transfer users.list.gz


?האם התשובה שקיבלתם הייתה מועילה 0 משתמשים שמצאו מאמר זה מועיל (0 הצבעות)