Website hosting and cheap domain registration services
  

 Home

Red Hat Linux 7.1: The Official Red Hat Linux Getting Started Guide
PrevChapter 10. Shell Prompt BasicsNext

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.


PrevHomeNext
Locating Files and DirectoriesUpView, Redirect, and Append Files with cat

 

  

Network sites:

 
 
 
 
 

Disclaimer: For authoritative source or latest update to this documentation, please refer to http://www.redhat.com/docs/manuals/linux/