Github標(biāo)星115K,這個(gè)文件傳輸神器別告訴我你還不知道
今天,猿妹要和大家分享一個(gè)簡(jiǎn)單,方便,快捷的命令行文件分享服務(wù)——Transfer.sh,最關(guān)鍵的是它支持加密傳輸數(shù)據(jù),最多允許你上傳10GB,上傳和下載的速度很快,上傳后的文件支持URL共享,支持ZIP或Tar壓縮格式。
Transfer.sh 旨在與Linux shell一起使用目前支持 s3(Amazon S3)、gdrive(Google Drive)、storj(Storj)提供者和本地文件系統(tǒng)(local)。
目前,Transfer.sh已經(jīng)在Github上標(biāo)星11.7K,累計(jì)分支1.2K(Github地址:https://github.com/dutchcoders/transfer.sh)
下面還是一起來(lái)看看使用方法吧:
上傳:
- $ 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
設(shè)置最大下載量
- $ curl --upload-file ./hello.txt https://transfer.sh/hello.txt -H "Max-Downloads: 1" # Limit the number of downloads
設(shè)置最大天數(shù)
- $ curl --upload-file ./hello.txt https://transfer.sh/hello.txt -H "Max-Days: 1" # Set the number of days before deletion