开源最前线(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 <X-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
本文分享自 机器学习算法与Python学习 微信公众号,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体分享计划 ,欢迎热爱写作的你一起参与!