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.

3.3.1 File Commands<br />

The following section lists the most important commands for file management. It covers<br />

anything from general file administration to manipulation <strong>of</strong> file system ACLs.<br />

File Administration<br />

ls [options] [files]<br />

If you run ls without any additional parameters, the program lists the contents <strong>of</strong><br />

the current directory in short form.<br />

-l<br />

-a<br />

Detailed list<br />

Displays hidden files<br />

cp [options] source target<br />

Copies source to target.<br />

-i<br />

-r<br />

Waits for confirmation, if necessary, before an existing target is overwritten<br />

Copies recursively (includes subdirectories)<br />

mv [options] source target<br />

Copies source to target then deletes the original source.<br />

-b<br />

-i<br />

Creates a backup copy <strong>of</strong> the source before moving<br />

Waits for confirmation, if necessary, before an existing targetfile is<br />

overwritten<br />

rm [options] files<br />

Removes the specified files from the file system. Directories are not removed by<br />

rm unless the option -r is used.<br />

Working with the Shell 107

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

Saved successfully!

Ooh no, something went wrong!