Clear and Reset the Window

After even one ls command in a shell prompt, the screen can start to look crowded. You can always exit from the terminal window and open a new one, but here's a quicker way to clean up the screen.

Type the following command:

clear

at the shell prompt. The clear command does just what it implies: it clears the screen.

Sometimes, you may accidentally open a program file or some other non-text file in a terminal window. Once you close the file, you could find that the text you're typing doesn't match with the output on the monitor.

In such cases, you simply have to type:

reset

to return the window to its default values.