transfer.sh-在命令行界面上传文件生成外链分享

Kevin 杂记 1,683 次浏览 40条评论

在桌面版系统计算机上,要上传文件以外链方式分享非常简单,有许多类似文件中转站的分享服务,只需浏览器访问网站操作即可。今天看到个比较特别的文件分享服务,它主要面向命令行界面用户,提供一种简单无需安装额外软件的分享方式,支持多文件上传、加密分享等特性,最长可保存14天。

transfer.sh

官网链接

https://transfer.sh/,网页里也可以点击上传。GitHub项目提供有程序源码,可以自行搭建类似服务。

适用场景

  • 不借助FTP、lrzsz等传输软件取回文件
  • 分享文件而无需在本机开启WEB服务
  • 中转下载加速,解决直接下载速度慢问题

使用瓶颈

  • 上传文件最大为10G,保存时间最长14天
  • 不支持续传,大文件上传需保持稳定网络
  • 下载次数达上限后,下载页依然可预览文件

使用示例

上传当前目录下file.txt文件,之后会自动返回外链链接。域名后面不指定文件名也可以。

curl --upload-file file.txt https://transfer.sh/file.txt

在命令行界面下载已分享的外链文件。

curl https://transfer.sh/xxxxx/file.txt -o file.txt

设置最大下载次数和储存天数,例如文件最多可下载1次,储存1天。

curl -H "Max-Downloads: 1" -H "Max-Days: 1" --upload-file file.txt https://transfer.sh/file.txt

一次上传多个文件。

curl -F filedata=@/tmp/file1.txt -F filedata=@/tmp/file2.txt https://transfer.sh/

使用gpg加密文件再上传。

cat /tmp/file.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/file.txt

下载并解密文件。

curl https://transfer.sh/1lDau/file.txt|gpg -o- > /tmp/file.txt

评论列表

  1. #1

    generic version dapoxetine citrate https://dapoxetine.confrancisyalgomas.com/

  2. #2

    naltrexone and chronic pain https://naltrexoneonline.confrancisyalgomas.com/

  3. #3

    generic vidalista prices https://vidalista.mlsmalta.com/

  4. #4

    merck ivermectin https://ivermectin.webbfenix.com/

  5. #5

    ivermectin dosage for demodex https://ivermectin.mlsmalta.com/

  6. #6

    how is hydroxychloroquine manufactured https://hhydroxychloroquine.com/

  7. #7

    hydroxychloroquine eye exam https://hydroxychloroquine.mlsmalta.com/

  8. #8

    reviews of generic viagra http://droga5.net/

  9. #9

    not taking tamoxifen after mastectomy https://tamoxifen.mrdgeography.com/

  10. #10

    cheap vidalista pills https://vidalista40mg.mlsmalta.com/

  11. #11

    different albuterol inhalers https://amstyles.com/

  12. #12

    side effects cialis oral https://wisig.org/

  13. #13

    priligy 60mg price walmart https://ddapoxetine.com/

  14. #14

    tadalafil research liquid https://tadalafil.cleckleyfloors.com/

  15. #15

    study on hydroxychloroquine and covid 19 september https://hydroxychloroquinee.com/

  16. #16

    does cialis 20 mg work https://www.lm360.us/

  17. #17

    generic viagra pills http://viaaagra.com/

  18. #18

    best time to take viagra https://viaplz.com/

  19. #19

    is cialis covered by medicare https://cialis.adicbc.com/

  20. #20

    is cialis covered by medicare https://cialis.webbfenix.com/

  21. #21

    cialis http://cialis.anafassia.com/

  22. #22

    vidalista 60

  23. #23

    canada viagra without a doctor prescriptions

  24. #24

    http://hcialischeapc.com/ – buy cialis

  25. #25

    buy generic cialis online http://edonline.online/

  26. #26

    farmacia de guardia en torrent valencia http://essinreceta.com/# que es la viagra

  27. #27

    where to buy cheap sildenafil https://eunicesildenafilcitrate.com/ buy sildenafil from india

  28. #28

    buying viagra online viagra cost
    how much is viagra

  29. #29

    Oct. 6, 2019: kamagra oral jelly testbericht kamagra wiki

  30. #30

    buy hydroxychloroquine online https://hydroxychloroquinex.com/

  31. #31

    edex (alprostadil) https://alprostadildrugs.com/ alprostadil urethral suppository otc

  32. #32

    order ed pills ed cures
    ed meds

  33. #33

    pills for erection ed pills online
    cheap ed pills from canada

  34. #34

    cheap ed pills erection pills online
    diabetes and ed

  35. #35

    40 mg tadalafil https://elitadalafill.com/ tadalafil online

  36. #36

    vardenafil sublingual under tongue https://vegavardenafil.com/ us prices on vardenafil

  37. #37

    a medical doctor
    que es la ivermectina

  38. #38

    cialis medication cost

  39. #39

    prescription tadalafil online https://cialis.advantagetriseal.com/

  40. #40

    prescription tadalafil online https://cialis.buszcentrum.com/

发表评论

电邮地址用于 Gravatar 头像显示,不会被公开可见。