Transfer.sh,命令行式文件分享网,https://transfer.sh网络最大支持上传5GB
一般我们都是在Windows下上传文件到各种云存储里去
这里提供几个命令参数:
1、上传:curl --upload-file ./hello.txt https://transfer.sh/hello.txt
2、下载:curl https://transfer.sh/66nb8/hello.txt
3、创建共享别名:
transfer() { curl --upload-file $1 https://transfer.sh/$(basename $1); }
alias transfer=transfer
4、加密上传:cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file - https://transfer.sh/test.txt
5、解密下载:curl https://transfer.sh/1lDau/test.txt|gpg -o-/tmp/hello.txt
看到上面的加密和解密功能