Linux 之 tar和nc傳文件

前提:

將 172.16.88.1 上的 test 文件夾傳送到 172.16.88.2 上spa

 

接收方 ---- 172.16.88.2

$  nc -l 9876 > test.tar

9876 爲端口號code

 

發送方 ---- 172.16.88.1

$ tar -zcvf - test | nc 172.16.88.2 9876

test 爲待傳文件夾blog

9876 爲接收方監聽的端口號class

相關文章
相關標籤/搜索