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

相关文章
相关标签/搜索