A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/linux-unix/stty-command-in-linux-with-examples/ below:

stty command in Linux with Examples

stty command in Linux with Examples

Last Updated : 11 Jul, 2025

stty command in Linux is used to change and print terminal line settings. This command shows or changes terminal characteristics.

Syntax
stty [-F DEVICE | --file=DEVICE] [SETTING]...
stty [-F DEVICE | --file=DEVICE] [-a|--all]
stty [-F DEVICE | --file=DEVICE] [-g|--save]

where,

Basic Example

It will display the characteristics of the terminal.

Key Options used with the stty command 1. stty --all:

This option print all current settings in human-readable form.

stty --all
2. stty -g:

This option will print all current settings in a stty-readable form.

stty -g
3. stty -F:

This option will open and use the specified DEVICE instead of stdin.

Example:

stty -F D/
4. stty --help:

This option will display this help and exit.

stty --help
5. stty --version:

This option will show the version information and exit.

stty --version
Conclusion

The stty command is an essential tool for Linux users and administrators who need to manage terminal settings and control terminal behavior. If you are dealing with serial communications, modifying how the terminal processes input/output, or writing automation scripts, understanding how to use stty effectively can greatly enhance your workflow.



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4