I am wondering what the baud settings have to do with my terminal settings. How is the baud speed affecting my terminal? Shouldn't the terminal do more with CPI i.e. character per second settings? Is it having any historical significance?

AFAIK, stty command is used to change and print terminal line settings (man stty)

and, baud refers to how many times the voltage/signal level changes per second.

  • 1
    I'll just comment instead of answer because I'm a bit sketchy, but before intranets and internet, terminals all connected to the main computer via a serial cable and the ports speed or baud rate would have to be configured to match the termial/printer etc connected on the line. Modem's had special significance because they might have had different baud rates depending on the connection. Also today hobbyist's sometimes have the need (ie raspberry pi) – Tyson Sep 10 '14 at 4:32
  • So should I draw the conclusion that on the modern computer that I am working, changing baud settings won't affect how the terminal is displaying the output? – Gaurav Sep 10 '14 at 4:46
  • 2
    Exactly... Unless you're using a hardware terminal, it should make no difference. stty can just turn knobs that don't apply to virtual terminals. – neersighted Sep 10 '14 at 4:49

stty gets/sets IO characteristics of terminals, both physical and virtual. Because of this, it can set parameters that will have no actual effect, like the baud rate of a virtual terminal.

First you have to understand the types of terminal on Linux systems:

Most of the terminals you will see will be pseudo (virtual) terminals, and live in /dev/pts. These are sometimes called ptys for short. Any sort of software terminal lives here, whether it be a remote login via SSH or a local terminal emulator.

A tty (/dev/ttyX) is a local console emulated by the Linux kernel. This is the kind of terminal you use in Linux's virtual terminals. getty is the program used to show a login prompt and start a shell on these terminals.

A serial or USB serial tty (/dev/ttySX, /dev/ttyUSBX) has a real baud rate setting, and corresponds to real hardware. This is the real reason stty has a baud rate setting, and unlike virtual terminals, will be affected by changes you make to the baud rate.

| improve this answer | |
  • Could you please provide me examples of serial/USB terminals (like raspberrypi) where baud rate settings will matter? – Gaurav Sep 10 '14 at 5:02
  • 1
    Baud rate settings matter when you're using a serial console. The Raspberry Pi's serial console should have a default baud rate of 115200, as most modern hardware does. The serial console is used for access to a console, even when there is no graphical system. Embedded systems and servers still use serial ports heavily. If you're not using a physical, serial console, it should not matter. – neersighted Sep 10 '14 at 5:06

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.