文件传输小技巧

一次性传输,推荐个实用技巧,免装工具.

接收端 nc -l port >file
发送端 nc ip port < file

多文件可配合压缩命令
示例

接收端 nc -l port | tar -xzvf - -C /the/path/to/save
发送端 tar -czvf -O - file1 file2 dir1 dir2 | nc ip port

posted @ 2019-11-20 11:22  stdpain  阅读(136)  评论(0编辑  收藏  举报