26.10.2012 Views

SUSE LINUX Documentation - Index of

SUSE LINUX Documentation - Index of

SUSE LINUX Documentation - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IMPORTANT: No News Is Good News<br />

The shell is not verbose: in contrast to some graphical user interfaces, it usually<br />

does not provide confirmation messages when commands have been executed.<br />

Messages only appear in case <strong>of</strong> problems or errors.<br />

Also keep this in mind for commands to delete objects. Before entering a<br />

command like rm for removing a file, you should know if you really want to<br />

get rid <strong>of</strong> the object: it will be deleted irretrievably, without enquiry.<br />

Using Commands without Options<br />

Look at the structure <strong>of</strong> commands using a simple example: the ls command, used to<br />

list the contents <strong>of</strong> a directory. The command can be used with or without options. Entering<br />

the plain ls command shows the contents <strong>of</strong> the current directory:<br />

Figure 3.2 The ls Command<br />

Unlike in MS Windows, files in Linux may have a file extension, such as .txt, but<br />

do not need to have one. This makes it difficult to differentiate between files and folders<br />

in this output <strong>of</strong> the ls. By default, the colors can give you a hint: directories are usually<br />

shown in blue, files in black.<br />

Using Commands with Options<br />

A better way to get more details about the contents <strong>of</strong> a directory is using the ls command<br />

with a string <strong>of</strong> options. Options modify the way a command works so that you<br />

can get it to do specific tasks. Options are separated from the command with a blank<br />

Working with the Shell 91

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

Saved successfully!

Ooh no, something went wrong!