Red Hat ENTERPRISE LINUX 4 - STEP BY STEP GUIDE Manual page 72

Table of Contents

Advertisement

58
With
, you can see every file or directory whose name contains the search criterion. For ex-
locate
ample, to search for all files with the word
locate finger
The
command uses a database to locate files and directories that have the word
locate
the file or directory name. The search results could include a file called
pointerfinger.txt
, read the
locate
locate
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. Refer to the Red Hat Enterprise Linux System Administration Guide for more information
on
.
cron
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
4.7.3. Which, whereis, whatis
which
The format of the
which command
returns
which
information provided by
Section 2.2.1 Adding Application Launchers for more information.
which gedit
The above command returns the information
whereis
The format of the
whereis command
The following command returns the locations of: the binary of
code, and the location of the
whereis find
/usr/bin/find /usr/share/man/man1p/find.1p.gz /usr/share/man/man1/find.1.gz
whatis
The format of the
whatis command
This command returnsinformation about the command from each of its man pages.
whatis lp
The above command returns:
lp
(4) - line printer devices
lp(lp-cups) (1) - print files
finger
, a directory named
/fingerthumbnails/
man page (type
man locate
updatedb
database that is used by the
slocate
exit
command is:
which
the
location
of
is useful for creating application launchers. Refer to
which
command is:
whereis
man page.
find
is:
whatis
in the name, type:
at a shell prompt).
job.
cron
cron
locate
at a shell prompt and then your root
su -
.
locate
at the prompt; you are returned to your user account.
binary,
or
executable,
/usr/bin/gedit
Chapter 4. Shell Prompt Basics
, a file called
finger.txt
, and so on. To learn more about
is a small program that runs in the
database) at regularly scheduled
command is updated.
shell
commands.
.
, the location of the source
find
in
finger
The

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise linux 4

Table of Contents