Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

migrated from Jun 5 '13 at 14:15

This question came from our site for professional and enthusiast programmers.

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 ( – 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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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