Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The stty command is the command-line analog of the tcgetattr() and tcsetattr() functions, allowing us to view and change terminal attributes from the shell. This is useful when trying to monitor, debug, or undo the effects of programs that modify terminal attributes.
We can view the current settings of all terminal attributes using the following command (here carried out on a virtual console):