Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 04-08-2006 Installation Manual page 367

Table of Contents

Advertisement

Commands to Access File Contents
file [options] [files]
With file, detect the contents of the specified files.
-z
Tries to look inside compressed files
cat [options] files
The cat command displays the contents of a file, 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 specified file. Scroll half
a screen page up or down with
. Jump to the beginning or end of a file using
Space
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
Ignores case
-H
Only displays the names of the respective files, but not the text lines
-n
Additionally displays the numbers of the lines in which it found a hit
-l
Only lists the files in which searchstring does not occur
and
or a full screen page down with
PgUp
PgDn
Home
and
. Press
to exit
End
Q
Working with the Shell
367

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents