place it in the background by appending an ampersand (&), so you can immedi-
ately continue working on the same command line (updatedb &). This command
usually runs as a daily cron job (see cron.daily).
find [options]
With find, search for a le in a given directory. The rst argument species the
directory in which to start the search. The option -name must be followed by a
search string, which may also include wild cards. Unlike locate, which uses a
database, find scans the actual directory.
7.12.1.2 Commands to Access File Contents
file [options] [files]
With file, detect the contents of the specied les.
-z
Tries to look inside compressed les
cat [options] files
The cat command displays the contents of a le, printing the entire contents to
the screen without interruption.
-n
Numbers the output on the left margin
less [options] files
This command can be used to browse the contents of the specied le. Scroll half
a screen page up or down with [PgUp] and [PgDn] or a full screen page down with
[Space]. Jump to the beginning or end of a le using [Home] and [End]. Press [Q]
to exit the program.
grep [options] searchstring files
The grep command nds a specic search string in the specied les. If the search
string is found, the command displays the line in which searchstring was found
along with the lename.
-i
Ignores case
-H
Only displays the names of the relevant les, but not the text lines
-n
Additionally displays the numbers of the lines in which it found a hit
-l
Only lists the les in which searchstring does not occur
110 Start-Up