
16.5 “Washing” the Window 235
Figure 16.10: The ls command in /usr
16.5 “Washing” the Window
After even one ls command in an xterm window, things might start feeling a little crowded. We
can always exit from the terminal window and open a new one, but here’s a quicker way to wipe the
slate clean.
Just type:
clear
at the shell prompt. The clear command does just as advertised: it clears the terminal screen.
Sometimes, you may accidentally open a program file or some other non-text file in a terminal win-
dow. 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.
Komentarze do niniejszej Instrukcji