1、nc 传单个文件
server接收端:
$ nc -l -p 8880 > a.html
client发送端:
$ nc 10.10.10.10 8880 < a.html
2、nc 传文件夹
server接收端:
$ nc -l -p $PORT | tar -xf -
client发送端:
$ tar -cf - $DIRECTORY | nc $HOST $PORT
1、nc 传单个文件
server接收端:
$ nc -l -p 8880 > a.html
client发送端:
$ nc 10.10.10.10 8880 < a.html
2、nc 传文件夹
server接收端:
$ nc -l -p $PORT | tar -xf -
client发送端:
$ tar -cf - $DIRECTORY | nc $HOST $PORT
一、幾個基本概念 tty(Teletypewriter) 來源於“電傳打印機”,Linux系統中則是終端設備的統稱,同時也代指操作系統中支持終端設備的tty子系統。 console(控制檯)