Stty

From LQWiki
Jump to: navigation, search

stty (short for set teletype) is the command to set up a terminal (or terminal emulation session) such that it will fit the needs of the keyboard and attached screen. In the old days of vt100 and and vt220 terminals is was a necessity to use a unix machine. stty without options lists the current setting.

$ stty
speed 38400 baud; line = 0;

The stty command can be useful, for instance, if a remote machine does not respond to the backspace key correctly. The erase switch can correct the response.

$ stty erase [type backspace key]

Related Commands

All of these relate to the context of the current session.

  • pwd - show the current working directory.
  • printenv - show environment variables
  • tty - identify the controlling terminal

See also

This article is a stub and needs to be finished. Plunge forward and help it grow!