Transfer.sh:命令行式文件分享網(wǎng)是一個(gè)支持在線拖拽式存儲(chǔ)和命令行式的文件存儲(chǔ)網(wǎng)站,最大支持上傳5GB,上傳和下載的速度很快,上傳后的文件支持URL共享,支持ZIP或Tar壓縮格式。
一般我們都是在Windows下上傳文件到各種云存儲(chǔ)里去,今天分享的網(wǎng)站可以支持Linux系統(tǒng),直接采用命令行就可以上傳,幾個(gè)簡(jiǎn)單的命令就可以把Linux系統(tǒng)里的文件上傳的網(wǎng)絡(luò)中去,并生成URL鏈接。
這里提供幾個(gè)命令參數(shù):
1、上傳:curl --upload-file ./hello.txt https://transfer.sh/hello.txt
2、下載:curl https://transfer.sh/66nb8/hello.txt
3、創(chuàng)建共享別名:
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
看到上面的加密和解密功能,還有支持最大5G的文件上傳,并且沒(méi)有上傳文件個(gè)數(shù)的限制,說(shuō)道這里你覺(jué)得這個(gè)存儲(chǔ)網(wǎng)站可以做什么?