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 is a quicker way to clean up the screen.

Type the following command:


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 are typing does not match with the output on the monitor.

In such cases, you simply have to type:


to return the window to its default values.