Web page hosting, cheap domain name & website promotion services
  

 Home

Red Hat Linux 7.2: 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 is 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 are typing does not 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
Printing From The Command LineUpView, Redirect, and Append Files with cat
 

 

 

 

Website promotion and ranking services | Active-Domain.com: Domain name registration | Cheap domain registrar 

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

 

 
Quotes: The poor wish to be rich, the rich wish to be happy, the single wish to be married and the married wish to be dead.People who have attained things worth having in this world have worked while others have idled, have persevered while others gave up in despair, and have practiced early in life the valuable habits of self-denial, industry, and singleness of purpose. As a result, they enjoy in later life the success often erroneously attributed to good luck.