发送端:cat test.txt | nc -l -p 6666 或者nc -l -p 6666 < test.txt 有些版本不要在 -p监听6666端口,等待连接(设发送端IP为10.20.133.152)接收端:nc 10.20.133.152 6666 > test
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号