linux系統croc命令在電腦之間傳輸文件和文件夾


1、croc安裝

方法1:

 curl https://getcroc.schollz.com | bash

方法2(ubuntu):

gdebi croc_8.3.2_Linux-64bit.deb ## (需要提前下載好安裝包)  https://github.com/schollz/croc/releases

 

2、使用前確保兩台計算機都安裝了croc

使用方法:

root@PC1:/home/test2# ls
test.txt
root@PC1:/home/test2# croc send test.txt ## croc send 直接跟文件或者文件夾
Sending 'test.txt' (10 B)
Code is: 5414-neon-absorb-remote
On the other computer run

croc 5414-neon-absorb-remote    ## 在接收主機中直接輸入:croc 5414-neon-absorb-remote 即可接收
 
        

 

2、可以在發送文件的使用指定傳輸密碼

例如:

croc send test.txt --code myfirstcode    ## 在接收主機中輸入:croc myfirstcode即可接收

 

參考:https://mp.weixin.qq.com/s?__biz=MzI4MDEwNzAzNg==&mid=2649455609&idx=2&sn=fa5131db4d2198261a3174e0689d0512&chksm=f3a25a8ac4d5d39c0367c7daf89ad38604b0bd9986f6539d795e306544886553b8b19bdccb34&mpshare=1&scene=23&srcid=1222iWg1kFtTl5xlpboeRmIL&sharer_sharetime=1640163280480&sharer_shareid=4ed060cc4cd1efce40e3ab6dd8d8c7d4#rd

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM