Sets terminal I/O options for the current device. Without options,
stty reports the terminal settings, where a
^ indicates the Control key, and
^' indicates a null value. Most modes can be
switched using an optional preceding dash (-, shown in brackets). The
corresponding description is also shown in brackets. As a privileged
user, you can set or read settings from another device using the
stty is one of the most complicated Unix commands.
The complexity stems from the need to deal with a large range of
conflicting, incompatible, and nonstandardized terminal
devices—everything from printing teletypes to CRTs to
pseudoterminals for windowing systems. Only a few of the options are
really needed for day-to-day use.
sane is a particularly valuable one to remember.
Report all option settings.
Report current settings in BSD format.
Use file instead of standard input.
Report current settings in
Hang up connection (set the baud rate to zero).
Set terminal baud rate to
[Enable] disable modem control.
[Disable] enable the receiver.
[Disable] enable output hardware flow control using RTS/CTS.
Select character size in bits (5
[One] two stop bits per character.
[Don’t] hang up connection on last close.
Same as [
Set terminal input baud rate to