Clearing And Resetting The Terminal; Cat - Red Hat ENTERPRISE LINUX 3 - STEP BY STEP GUIDE Manual

Table of Contents

Advertisement

Chapter 3. Shell Prompt Basics
The
command works very quickly, as long as the database is up to date. That database is
locate
automatically updated on a nightly basis through a
background, performing various tasks (such as updating the
intervals.
Tip
As a daemon,
cron
at the shell prompt.
man cron
The
task periodically updates the
cron
Switching between operating systems and shutting down your machine at the end of the day can
interfere with the automatic database update run by
To update the database manually, log in as root (type
password) and type the command
After a few minutes, the
When you are done working as root, type
Note
You can run
anacron
in days. Unlike
cron
used on machines that are not running 24 hours a day to control daily, weekly, and monthly jobs that
are usually controlled by
Refer to the man page on
prise Linux System Administration Guide for more information.

3.7. Clearing and Resetting the Terminal

After even one
command in a shell prompt, the terminal window you are working in can begin
ls
to look crowded. You can always exit from the terminal window and open a new one, but there is a
quicker and easier way to remove the contents displayed in the terminal.
Try typing the command
it clears the terminal window.
Tip
A useful shortcut to typing
Refer to Appendix F Keyboard Shortcuts for more useful shortcuts.
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 the output on the
monitor.
In such cases, type
reset
executes tasks at regularly scheduled intervals. To read the
slocate
updatedb
database that is used by the
slocate
exit
to have your system execute commands periodically, with a frequency specified
, it does not assume that the machine is running continuously. Hence, it can be
.
cron
(type
anacron
man anacron
at the shell prompt. The
clear
at a shell prompt is to press [Ctrl]-[L], which also clears terminal.
clear
to return the terminal window to its default values.
job.
cron
cron
locate
database, which is used to catalog file locations.
.
cron
at a shell prompt and then your root
su -
.
locate
at the prompt; you are returned to your user account.
at the command line) and the Red Hat Enter-
command does just what it implies:
clear
is a small program that runs in the
database) at regularly scheduled
man page, type
cron
command is updated.
31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise linux 3

Table of Contents