STTY(1)
๐ stty(1) โ aka "bestie, your terminal has FEELINGS and here's how to talk to it"
User Commands energy, section 1 of the manual. Yes bestie, this is stty, and it's about to become your new obsession. ๐
โจ NAME โจ
stty โ change and print terminal line settings
Like, it literally pokes at how your terminal behaves. Groundbreaking. Iconic. ๐
๐ธ SYNOPSIS ๐ธ
stty [-F DEVICE | --file=DEVICE] [SETTING]...
stty [-F DEVICE | --file=DEVICE] [-a|--all]
stty [-F DEVICE | --file=DEVICE] [-g|--save]
Three whole moods, okay? ๐ฆ
๐ DESCRIPTION ๐
Print or change terminal characteristics. That's the whole gig. ๐
Mandatory arguments to long options are mandatory for short options too. (Read that twice, it matters.)
๐ OPTIONS ๐
-a,--allโ print all current settings in human-readable form-g,--saveโ print all current settings in a stty-readable form-F,--file=DEVICEโ open and useDEVICEinstead of standard input--helpโ display this help and exit--versionโ output version information and exit
Optional-before SETTING indicates negation. An*marks non-POSIX settings. The underlying system defines which settings are available. So like, your mileage may vary based on your system's vibe check. ๐
๐ Special characters:
* discard CHARโCHARwill toggle discarding of outputeof CHARโCHARwill send an end of file (terminate the input)eol CHARโCHARwill end the line* eol2 CHARโ alternateCHARfor ending the lineerase CHARโCHARwill erase the last character typedintr CHARโCHARwill send an interrupt signalkill CHARโCHARwill erase the current line* lnext CHARโCHARwill enter the next character quotedquit CHARโCHARwill send a quit signal* rprnt CHARโCHARwill redraw the current linestart CHARโCHARwill restart the output after stopping itstop CHARโCHARwill stop the outputsusp CHARโCHARwill send a terminal stop signal* swtch CHARโCHARwill switch to a different shell layer* werase CHARโCHARwill erase the last word typed
๐ง Special settings:
Nโ set the input and output speeds toNbaudscols Nโ tell the kernel that the terminal hasNcolumns* columns Nโ same ascols N* [-]drainโ wait for transmission before applying settings (on by default)ispeed Nโ set the input speed toN* line Nโ use line disciplineNmin Nโ with-icanon, setNcharacters minimum for a completed readospeed Nโ set the output speed toNrows Nโ tell the kernel that the terminal hasNrowssizeโ print the number of rows and columns according to the kernelspeedโ print the terminal speedtime Nโ with-icanon, set read timeout ofNtenths of a second
๐ Control settings:
[-]clocalโ disable modem control signals[-]creadโ allow input to be received* [-]crtsctsโ enable RTS/CTS handshakingcsNโ set character size toNbits,Nin [5..8][-]cstopbโ use two stop bits per character (one with-)[-]hupโ send a hangup signal when the last process closes the tty[-]hupclโ same as[-]hup[-]parenbโ generate parity bit in output and expect parity bit in input[-]paroddโ set odd parity (or even parity with-)* [-]cmsparโ use "stick" (mark/space) parity
๐ฆ Input settings:
[-]brkintโ breaks cause an interrupt signal[-]icrnlโ translate carriage return to newline[-]ignbrkโ ignore break characters[-]igncrโ ignore carriage return[-]ignparโ ignore characters with parity errors* [-]imaxbelโ beep and do not flush a full input buffer on a character[-]inlcrโ translate newline to carriage return[-]inpckโ enable input parity checking[-]istripโ clear high (8th) bit of input characters* [-]iutf8โ assume input characters are UTF-8 encoded* [-]iuclcโ translate uppercase characters to lowercase* [-]ixanyโ let any character restart output, not only start character[-]ixoffโ enable sending of start/stop characters[-]ixonโ enable XON/XOFF flow control[-]parmrkโ mark parity errors (with a 255-0-character sequence)[-]tandemโ same as[-]ixoff
โญ Output settings:
* bsNโ backspace delay style,Nin [0..1]* crNโ carriage return delay style,Nin [0..3]* ffNโ form feed delay style,Nin [0..1]* nlNโ newline delay style,Nin [0..1]* [-]ocrnlโ translate carriage return to newline* [-]ofdelโ use delete characters for fill instead of NUL characters* [-]ofillโ use fill (padding) characters instead of timing for delays* [-]olcucโ translate lowercase characters to uppercase* [-]onlcrโ translate newline to carriage return-newline* [-]onlretโ newline performs a carriage return* [-]onocrโ do not print carriage returns in the first column[-]opostโ postprocess output* tabNโ horizontal tab delay style,Nin [0..3]* tabsโ same astab0* -tabsโ same astab3* vtNโ vertical tab delay style,Nin [0..1]
๐ Local settings:
[-]crteraseโ echo erase characters as backspace-space-backspace* crtkillโ kill all line by obeying theechoprtandechoesettings* -crtkillโ kill all line by obeying theechoctlandechoksettings* [-]ctlechoโ echo control characters in hat notation ('^c')[-]echoโ echo input characters* [-]echoctlโ same as[-]ctlecho[-]echoeโ same as[-]crterase[-]echokโ echo a newline after a kill character* [-]echokeโ same as[-]crtkill[-]echonlโ echo newline even if not echoing other characters* [-]echoprtโ echo erased characters backward, between'\'and'/'* [-]extprocโ enable "LINEMODE"; useful with high latency links* [-]flushoโ discard output[-]icanonโ enable special characters:erase,kill,werase,rprnt[-]iextenโ enable non-POSIX special characters[-]isigโ enable interrupt, quit, and suspend special characters[-]noflshโ disable flushing after interrupt and quit special characters* [-]prteraseโ same as[-]echoprt* [-]tostopโ stop background jobs that try to write to the terminal* [-]xcaseโ withicanon, escape with'\'for uppercase characters
๐ Combination settings:
* [-]LCASEโ same as[-]lcasecbreakโ same as-icanon-cbreakโ same asicanoncookedโ same asbrkint ignpar istrip icrnl ixon opost isig icanon,eofandeolcharacters to their default values-cookedโ same asrawcrtโ same asechoe echoctl echokedecโ same asechoe echoctl echoke -ixany intr ^c erase 0177 kill ^u* [-]decctlqโ same as[-]ixanyekโ erase and kill characters to their default valuesevenpโ same asparenb -parodd cs7-evenpโ same as-parenb cs8* [-]lcaseโ same asxcase iuclc olcuclitoutโ same as-parenb -istrip -opost cs8-litoutโ same asparenb istrip opost cs7nlโ same as-icrnl -onlcr-nlโ same asicrnl -inlcr -igncr onlcr -ocrnl -onlretoddpโ same asparenb parodd cs7-oddpโ same as-parenb cs8[-]parityโ same as[-]evenppass8โ same as-parenb -istrip cs8-pass8โ same asparenb istrip cs7rawโ same as-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -icanon -opost -isig -iuclc -ixany -imaxbel -xcase min 1 time 0-rawโ same ascookedsaneโ same ascread -ignbrk brkint -inlcr -igncr icrnl icanon iexten echo echoe echok -echonl -noflsh -ixoff -iutf8 -iuclc -ixany imaxbel -xcase -olcuc -ocrnl opost -ofill onlcr -onocr -onlret nl0 cr0 tab0 bs0 vt0 ff0 isig -tostop -ofdel -echoprt echoctl echoke -extproc -flusho, all special characters to their default values
Handle the tty line connected to standard input. Without arguments, prints baud rate, line discipline, and deviations from stty sane. In settings, CHAR is taken literally, or coded as in ^c, 0x37, 0177 or 127; special values ^- or undef used to disable special characters. ๐ซถ
๐ AUTHOR ๐
Written by David MacKenzie. King behavior honestly. ๐
๐ญ REPORTING BUGS ๐ญ
Report bugs to: <bug-coreutils@gnu.org>. Report any translation bugs to: <https://translationproject.org/team/>. GNU coreutils home page: <https://www.gnu.org/software/coreutils/> General help using GNU software: <https://www.gnu.org/gethelp/>
(ngl if you find a bug, tell them, don't just suffer in silence bestie ๐)
๐ธ COPYRIGHT ๐ธ
Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
There is NO WARRANTY. Like, at all. Read it again. It's giving "you're on your own, babe." ๐ญ
๐ฆ SEE ALSO ๐ฆ
Full documentation <https://www.gnu.org/software/coreutils/stty> or available locally via: info '(coreutils) stty invocation'
And that's the whole page, bestie โ this was GNU coreutils 9.12, dated September 2026, page STTY(1), and you ate it. โจ Go forth and reconfigure your tty like the main character you are. ๐๐ฆ๐
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms