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

I need to find the linux way of running the following DOS commands:

MODE COM1: 9600,N,8,1,P

Is this possible? I know COM1 in Linux is /dev/ttyS0 but that's about it. How do you set the mode on it and perform the copy?

share|improve this question
up vote 7 down vote accepted

Set tty device settings:

stty -F /dev/ttyS0 9600 -parity cs8 -cstopb

Send data:

cat firmware.cod > /dev/ttyS0
share|improve this answer
excellent! thank you very much! – nmuntz Sep 22 '10 at 19:32

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.