Github標星115K,這個文件傳輸神器別告訴我你還不知道
今天,猿妹要和大家分享一個簡單,方便,快捷的命令行文件分享服務——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
設置最大下載量
- $ 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