Novell LINUX ENTERPRISE DESKTOP 10 SP2 - DEPLOYMENT GUIDE 08-05-2008 Deployment Manual page 388

Table of Contents

Advertisement

find [options]
With find, search for a file in a given directory. The first argument specifies 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.
Commands to Access File Contents
file [options] [files]
With file, detect the contents of the specified files.
-z
cat [options] files
The cat command displays the contents of a file, printing the entire contents to
the screen without interruption.
-n
less [options] files
This command can be used to browse the contents of the specified file. 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 file using Home and End . Press Q to exit
the program.
grep [options] searchstring files
The grep command finds a specific search string in the specified files. If the search
string is found, the command displays the line in which searchstring was
found along with the filename.
-i
-H
-n
372
Deployment Guide
Tries to look inside compressed files
Numbers the output on the left margin
Ignores case
Only displays the names of the respective files, but not the text lines
Additionally displays the numbers of the lines in which it found a hit

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux enterprise desktop 10 sp2

Table of Contents