Miscellaneous
stty
Change and print terminal line settings.
Synopsis
syntax
stty [OPTION]... [SETTING]...
Examples
Display all terminal settings
stty -a
Print terminal rows and columns
stty size
Reset terminal to sane defaults
stty sane
Disable input echo (for password prompts)
stty -echo
Common options
| Flag | Description |
|---|---|
| -a | Print all current settings |
| -g | Print settings in stty-readable form |
| size | Print rows and columns |
| sane | Reset to sane defaults |
About stty
The `stty` command change and print terminal line settings. Utility commands cover a broad range of everyday tasks from date manipulation and arithmetic to terminal control and system documentation.
These tools fill in the gaps between major categories and are frequently used in shell scripts, cron jobs, and interactive sessions. The command accepts 4 commonly used flags shown above, though the full set of options is available in the man page (`man stty`).
The 4 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.
Related commands
More Miscellaneous Commands
Other commands in the Miscellaneous category