Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

stty

v0.13.0
stty [-F PÉRIPHÉRIQUE | --file=PÉRIPHÉRIQUE] [PARAMÈTRE]...
ou:  stty [-F PÉRIPHÉRIQUE | --file=PÉRIPHÉRIQUE] [-a|--all]
ou:  stty [-F PÉRIPHÉRIQUE | --file=PÉRIPHÉRIQUE] [-g|--save]

Afficher ou modifier les caractéristiques du terminal.

Options

--all, -a

print all current settings in human-readable form

--save, -g

print all current settings in a stty-readable form

--file=<DEVICE>, -F <DEVICE>

open and use the specified DEVICE instead of stdin

settings to change

Examples

The examples have not been translated yet and are shown in English. You can help by translating them on tldr-pages.

Display current terminal size:

stty size

Display all settings for the current terminal:

stty {{[-a|--all]}}

Set the number of rows or columns:

stty {{rows|cols}} {{count}}

Get the actual transfer speed of a device:

stty {{[-F|--file]}} {{path/to/device_file}} speed

Reset all modes to reasonable values for the current terminal:

stty sane

Switch between raw and normal mode:

stty {{raw|cooked}}

Turn character echoing off or on:

stty {{-echo|echo}}

Display help:

stty --help

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.