Anyone knowns how to use rz and sz under linux shell?
I can use it under sercurecrt, but not ubuntu shell.
Here is the screenshot.

enter image description here

  • What are you trying to do? – PleaseStand Jun 5 '13 at 12:54
  • I think these programs require an underlying terminal to implement the local end of the protocol. The shell you use is irrelevant. – chepner Jun 5 '13 at 13:40
  • For those (like me) who don't now immediately, what rz and sz is: Zmodem File Transfer (docstore.mik.ua/orelly/linux/run/apph_01.htm) – mpy Jun 5 '13 at 14:20

Ah, perhaps by typing the "rz" command at the console, perhaps you were trying to transfer a file via zmodem between two pc's directly from the console via a cross-over serial cable?

I've currently been trying to figure something like this out for myself, so will share what I've got, in-case it's what you were after.

I made two little scripts to help out:

script: "zsend"



stty -F $DEV 115200
sz $1 > $DEV < $DEV

script: "zrecv"



stty -F $DEV 115200
rz > $DEV < $DEV

Usage Example:

  • Copy these scripts onto both PCs.
  • Alter the "DEV" variable in each script to match your PC's serial device name (eg, for USB-serial ports, it might be "/dev/ttyUSB0")
  • On PC1, type: sudo zsend filename
  • On PC2, type: sudo zrecv

That's worked out for me.

| improve this answer | |

Get to know GNU Screen.

1.install GNU Screen

2.configure Screen by creating a .screenrc file in the root directory.

Write 'zmodem catch' into the .screenrc file.

3.run screen


(1) Send a file from the remote host to the local host:

execute sz FILE from the command line

hit when Screen brings up the default receive command

(2) Send a file from the local host to the remote host

execute rz from the command line

add local filename when Screen brings up the default send command, then hit

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.