Bourne | Ash |  #!  | find | ARG_MAX | Shells | portability | permissions | UUOC | ancient | - | ../Various | HOME
"$@" | echo/printf | set -e | test | tty defs | tty chars | $() vs ) | IFS | using siginfo | nanosleep | line charset | locale


stty defaults on various unix flavours

The motivation for this page was curiosity and interest in historical correlations.

Find out stty defaults with

You might notice unusual defaults if you are logged in remotely by telnet(1), but not with ssh(1).
sshd(8) tries to "export" your settings to the new session.
Shell profiles are a common way to change these settings.

In the following, "^X" means "<Ctrl-X>". See also an article in a.f.c, <62097@bbn.BBN.COM>, about a possible origin of the "^"-notation.

An article from Christian Weisgerber with some background about the BackSpace vs. Delete issue.

Various defaults:

OS INTR ERASE SUSP KILL LNEXT QUIT EOF cs8 istrip parenb
Arbitrary choice: ^C DEL ^Z ^U ^V ^\ ^D + + -
Version 7 [3] DEL # N/A @ N/A - ?
System III [4] DEL # N/A @ N/A - ?
3BSD, 4.0BSD [5] DEL # N/A @ N/A - ?
4.1c/4.2/4.3 BSD [6] ? ? ?
4.4BSD [7] - +
HP-UX A.08.07-B.09.03 [2] DEL # ( ) @ N/A -
HP-UX B.10.10-B.11.22 [2] DEL # ( ) @ ( ) - +
SINIX V5.2 DEL ^H N/A ^X N/A ^| - +
MUNIX 3.2 (SVR3.2) ^B ^X N/A ^Y ^Z - +
FreeBSD 4.3 [1] -
Linux 2.2.9 -
NetBSD 1.5 -
OpenBSD 2.9/3.1 ? - +
SunOS 3.5, 4.1.4 - +
SunOS 5.x ^| - +
Unicos 9.0.2.2 ^|
EP/IX 2.2.1AA DEL ^H ^|
OpenServer 5.0.6 DEL ^H ( ) -
IRIX 4.0.5 / 5.3 / 6.5 DEL ^H
OSF1 V4.0, V5.1 ^H
Minix 3.1.1 ^H
AIX 3.2.5 ^H
AIX 4.3.2 ^H +
[1] FreeBSD 4 provides also an ERASE2 capability ("^H")
[2] HP-UX uses ^Z for "SWTCH"
[3] <sys/tty.h>
[4] <termio.h>
[5] <sys/tty.h>
[6] <ttychars.h>
[7] <sys/ttydefs.h>

About this table:

Some notes:


2005-12-04 ... 2010-06-19