What is the difference between reset and clear in Terminal?

Asked

Viewed 627 times

5

In the Terminal, what is the difference between the commands reset and clear?

I’m using the Terminal of Ubuntu and apparently the two commands clear the screen.

  • reset apparently resets all commands, and clear just wipes the screens, in case the reset would be the same thing as rewriting all commands again.

  • That was a metaphor?

  • 5

    Use the command man, man reset and man clear, you will see exactly what each command does and will understand the difference between them

1 answer

8


clear

Eliminates the content of the visible area. What it actually does is scroll the bar so that you only see the clean area. But if you give a scroll up you will see all the previous content there.

reset

Really cleans the terminal. Equals closing and opening a new terminal.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.