Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is terminal initialization by reset command? When should reset command be used?

share|improve this question

reset will actually completely re-initialise the terminal, instead of just clearing the screen. However, it won't re-instantiate the shell (bash). That means that bash's state is the same as before, just as if you were merely clearing the screen.

share|improve this answer

For me:

$ tput reset | od -t x1z 
0000000 1b 63 1b 5b 21 70 1b 5b 3f 33 3b 34 6c 1b 5b 34  ..c.[!p.[?3;4l.[4.
0000020 6c 1b 3e                                         .l...

... cleansed a bit in the 'z' output above - &gt / &lt doesn't work well here.

More information, (too much?):

$ man terminfo
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.