[sz,rz]使用sz/rz在两台Linux设备之间传输数据
转自:https://superuser.com/questions/604055/using-rz-and-sz-under-linux-shell
zsend
#!/bin/sh DEV=/dev/ttyS0 stty -F $DEV 115200 sz $1 > $DEV < $DEV
zrecv
#!/bin/sh DEV=/dev/ttyS0 stty -F $DEV 115200 rz > $DEV < $DEV
PC1: sudo zsend filename
PC2: sudo zrecv