Py学习  »  Git

Github标星115K,这个文件传输神器别告诉我你还不知道

运维 • 2 年前 • 255 次点击  

来自:开源最前线(ID:OpenSourceTop) 

综合自:https://github.com/dutchcoders/transfer.sh

今天,猿妹要和大家分享一个简单,方便,快捷的命令行文件分享服务——Transfer.sh,最关键的是它支持加密传输数据,最多允许你上传10GB,上传和下载的速度很快,上传后的文件支持URL共享,支持ZIP或Tar压缩格式。

Transfer.sh 旨在与Linux shell一起使用目前支持 s3(Amazon S3)、gdrive(Google Drive)、storj(Storj)提供者和本地文件系统(local)。



目前,Transfer.sh已经在Github上标星11.7K,累计分支1.2K(Github地址:https://github.com/dutchcoders/transfer.sh


下面还是一起来看看使用方法吧:

上传:


$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt


加密上传:


$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt


下载和解密:


$ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt


上传到virustotal:


$ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal


删除


$ curl -X DELETE Url-Delete Response Header URL>


设置最大下载量


$ curl --upload-file ./hello.txt https://transfer.sh/hello


    
.txt -H "Max-Downloads: 1" # Limit the number of downloads


设置最大天数


$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt -H "Max-Days: 1" # Set the number of days before deletion



--- EOF ---


推荐↓↓↓
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/120394
 
255 次点击