26.10.2012 Views

SUSE LINUX Documentation - Index of

SUSE LINUX Documentation - Index of

SUSE LINUX Documentation - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

112 Start-Up<br />

Space . Jump to the beginning or end <strong>of</strong> a file using Home and End . Press Q<br />

to exit the program.<br />

grep [options] searchstring files<br />

The grep command finds a specific search string in the specified files. If the search<br />

string is found, the command displays the line in which searchstring was<br />

found along with the filename.<br />

-i<br />

-H<br />

-n<br />

-l<br />

Ignores case<br />

Only displays the names <strong>of</strong> the respective files, but not the text lines<br />

Additionally displays the numbers <strong>of</strong> the lines in which it found a hit<br />

Only lists the files in which searchstring does not occur<br />

diff [options] file1 file2<br />

The diff command compares the contents <strong>of</strong> any two files. The output produced<br />

by the program lists all lines that do not match. This is frequently used by programmers<br />

who need only send their program alterations and not the entire source code.<br />

-q<br />

-u<br />

Only reports whether the two files differ<br />

Produces a “unified” diff, which makes the output more readable<br />

File Systems<br />

mount [options] [device] mountpoint<br />

This command can be used to mount any data media, such as hard disks, CD-ROM<br />

drives, and other drives, to a directory <strong>of</strong> the Linux file system.<br />

-r<br />

Mount read-only

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!