成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

推薦一款 GitHub 星標 11.5K 的命令行文件傳輸神器(開源免費,支持 10GB 大文件)

系統 Linux
在工作和生活中,我們經常需要在不同設備之間傳輸文件,但往往會遇到需要安裝第三方軟件、文件大小限制、傳輸速度慢等問題。

[[423120]]

 在工作和生活中,我們經常需要在不同設備之間傳輸文件,但往往會遇到需要安裝第三方軟件、文件大小限制、傳輸速度慢等問題。安裝第三方軟件還好,但是限制傳輸速度和文件大小就非常惡心了,用著用著就得逼得你充值付費了。不然緊急需要傳輸一個東西,就非常花費時間和精力了。

1軟件介紹

Easy and fast file sharing from the command-line.

當然,我們可以也使用,老牌的 百度云盤(非會員限速)、Dropbox(速度非常之慢)和 Google Drive(需要科學上網),新進的 阿里云盤(雖然不限速但上傳不能加速)、奶牛快傳(有文件大小總量限制)。但是這里我們要介紹的是一個基于命令行的文件傳輸工具 —— transfer.sh。

  •  Made for use with shell
  •  Share files with a URL
  •  For free
  •  Upload up to 10 GB
  •  Files stored for 14 days
  •  Encrypt your files
  •  Maximize amount of downloads

2使用方式

    Sample use cases

  •  [1] 命令行使用 
  1. # 將shell函數添加到.bashrc或.zshrc文件中  
  2. transfer() {  
  3.   if [ $# -eq 0 ]; then  
  4.     echo "No arguments specified."  
  5.     echo "Usage: "  
  6.     echo "  transfer <file|directory> ... | transfer <file_name> 
  7.     return 1  
  8.   fi  
  9.   if tty -s; then  
  10.     file="$1"  
  11.     file_name=$(basename "$file")  
  12.     if [ ! -e "$file" ]; then  
  13.       echo "$file: No such file or directory"  
  14.       return 1  
  15.     fi  
  16.     if [ -d "$file" ]; then  
  17.       file_name="$file_name.zip"  
  18.       (cd "$file" && zip -r -q - .) | curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" | tee /dev/null  
  19.     else  
  20.       cat "$file" | curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" | tee /dev/null  
  21.     fi  
  22.   else  
  23.     file_name="$1"  
  24.     curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name"|tee /dev/null  
  25.   fi  
  26.  
  27. # 現在可以使用函數來上傳文件  
  28. $ transfer hello.txt 
  •  [2] 簡單上傳文件 - 官方支持界面上傳 
  1. # 使用curl命令上傳文件  
  2. $ curl --upload-file ./hello.txt https://transfer.sh/hello.txt  
  3. https://transfer.sh/66nb8/hello.txt  
  4. # 上傳文件設定最大下載次數和過期時間  
  5. $ curl -H "Max-Downloads: 1" -H "Max-Days: 5" --upload-file ./hello.txt https://transfer.sh/hello.txt  
  6. https://transfer.sh/66nb8/hello.txt  
  7. # 下載文件  
  8. $ curl https://transfer.sh/66nb8/hello.txt -o hello.txt  
  1. # 還支持wget上傳文件  
  2. $ wget --method PUT --body-file=/tmp/file.tar https://transfer.sh/file.tar -O - -nv  
  3. # 還支持HTTPie上傳文件  
  4. $ http https://transfer.sh/ -vv < /tmp/test.log  
  5. # 還支持PowerShell上傳文件  
  6. PS H:\> invoke-webrequest -method put -infile .\file.txt https://transfer.sh/file.txt 
  •  [3] 一次上傳多個文件 
  1. # 使用filedata執行文件地址  
  2. $ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt https://transfer.sh/  
  3. # 將下載合并為zip或tar存檔  
  4. $ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).tar.gz  
  5. $ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).zip 
  •  [4] 傳輸前使用加密您的文件 
  1. # 使用gpg加密文件  
  2. $ cat /tmp/hello.txt | gpg -ac -o- | curl -X PUT --upload-file "-" https://transfer.sh/test.txt  
  3. # 下載并解密  
  4. $ curl https://transfer.sh/1lDau/test.txt | gpg -o- > /tmp/hello.txt 
  1. # 使用openssl加密文件  
  2. $ cat /tmp/hello.txt | openssl aes-256-cbc -pbkdf2 -e | curl -X PUT --upload-file "-" https://transfer.sh/test.txt  
  3. # 下載并解密  
  4. $ curl https://transfer.sh/1lDau/test.txt | openssl aes-256-cbc -pbkdf2 -d > /tmp/hello.txt  
  1. # 從keybase導入key  
  2. $ keybase track [them]  
  3. # 加密文件  
  4. $ cat somebackupfile.tar.gz | keybase encrypt [them] | curl --upload-file '-' https://transfer.sh/test.txt  
  5. # 解密下載  
  6. $ curl https://transfer.sh/sqUFi/test.md | keybase decrypt 
  •  [5] 掃描惡意軟件 
  1. # 使用Clamav掃描惡意軟件或病毒  
  2. $ wget http://www.eicar.org/download/eicar.com  
  3. $ curl -X PUT --upload-file ./eicar.com https://transfer.sh/eicar.com/scan  
  4. # 上傳惡意軟件到VirusTotal并獲得永久鏈接  
  5. $ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal 
  •  [6] 加密傳輸備份 mysql 數據庫 
  1. # 備份+加密+傳輸  
  2. $ mysqldump --all-databases | gzip | gpg -ac -o- | curl -X PUT --upload-file "-" https://transfer.sh/test.txt 
  •  [7] 發送帶有傳輸鏈接的電子郵件 
  1. # 傳輸和發送帶有鏈接的電子郵件  
  2. $ transfer /tmp/hello.txt | mail -s "Hello World" user@yourmaildomain.com 
  •  [8] 傳輸日志文件 
  1. # grep syslog for pound and transfer  
  2. $ cat /var/log/syslog | grep pound | curl --upload-file - https://transfer.sh/pound.log  

 

責任編輯:龐桂玉 來源: 奇妙的Linux世界
相關推薦

2021-04-09 16:25:00

GitHub代碼開發者

2020-11-10 10:46:57

開源后臺管理系統Base Admin

2021-09-16 15:52:05

GitHub命令URL

2021-05-20 12:16:17

Linux命令Axel

2020-01-30 18:10:28

GitHub代碼開發者

2015-07-29 09:15:43

Dukto開源工具

2022-04-14 11:09:17

開源項目搜索

2020-03-13 10:18:43

GitHub 技術開源

2021-11-16 14:55:50

命令行Linux開源

2023-06-06 08:57:27

2016-10-20 09:57:58

Linux轉換工具

2024-08-16 08:31:05

2019-09-16 09:58:16

GitHub搶票Python

2019-02-25 10:18:43

工具代碼測試

2019-12-24 11:13:02

GitHub代碼開發者

2012-11-09 13:42:33

Google Clou

2021-08-25 11:10:41

GitHub命令Linux

2021-07-21 16:13:54

GitHub 技術開源

2020-07-28 14:23:55

代碼開發Github

2012-11-29 10:28:57

谷歌GoogleDriveGmail
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 天堂视频中文在线 | 欧美亚洲在线视频 | av影片在线 | 污视频免费在线观看 | 午夜免费电影 | 精品欧美一区二区在线观看欧美熟 | 日本网站免费在线观看 | 日本三级在线视频 | 日本精品久久久一区二区三区 | 91精品一区 | 久久av网站 | 国产精品久久久久久久久 | 羞羞网站在线观看 | 精品一区二区三区四区五区 | av男人的天堂av | 激情免费视频 | 国产一区二区精品在线 | 日韩精品一区二区三区视频播放 | 亚洲aⅴ | 一级做a | 国产成都精品91一区二区三 | 国产99久久精品一区二区永久免费 | 视频三区| 午夜天堂 | 日韩欧美在线观看一区 | 懂色中文一区二区在线播放 | 国产高清免费视频 | 日韩在线欧美 | 国产高清精品一区二区三区 | 成人在线免费看 | 国产精品国产 | 夜夜爽99久久国产综合精品女不卡 | 亚洲视频一区二区三区 | 国产成人久久精品一区二区三区 | 久久6视频| 一级高清| 亚洲福利在线视频 | 欧美日韩精品一区 | 国产视频一区在线观看 | 91视频88av| 日韩国产欧美一区 |