Reset command

From Linux Shell Scripting Tutorial - A Beginner's handbook
Jump to navigation Jump to search

The reset command under a BSD/Linux/UNIX operating system is used to restore a console to a normal state. This is useful after a program dies leaving a terminal in an abnormal state.

Usage

When invoked reset command sets cooked and echo modes, turns off cbreak and raw modes, turns on newline translation and resets any unset special characters to their default values before doing the terminal initialization. This is useful after a program dies leaving a terminal in an abnormal state.

Example

Just put terminal in an abnormal state:

$ cd /tmp/
$ cat /path/to/binary
$ cat /sbin/*
$ reset

See also