文件传输小技巧

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

接收端 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

原文地址:https://www.cnblogs.com/stdpain/p/11896542.html