Novell SUSE LINUX Professional 9.3 Update 00662644461625 Benutzerhandbuch
Produktcode
00662644461625
19
W
or
king
king
with
the
Shell
The actual command and its mandatory options are always printed as
command
option
. Specifications or parameters that are not required are placed in
[square brackets]
.
Adjust the settings to your needs. It makes no sense to write
ls file(s)
, if no
file named
file(s)
actually exists. You can usually combine several parameters,
for example, by writing
ls -la
instead of
ls -l -a
.
19.3.1
File Commands
The following section lists the most important commands for file management. It
covers anything from general file administration to manipulation of file system
ACLs.
covers anything from general file administration to manipulation of file system
ACLs.
File Administration
ls [option(s)] [file(s)]
If you run
ls
without any additional parame-
ters, the program lists the contents of the current directory in short form.
-l
Detailed list
-a
Displays hidden files
cp [option(s)] source target
Copies
source
to
target
.
-i
Waits for confirmation, if necessary, before an existing
target
is over-
written
-r
Copies recursively (includes subdirectories)
mv [option(s)] source target
Copies
source
to
target
then deletes the
original
source
.
-b
Creates a backup copy of the
source
before moving
-i
Waits for confirmation, if necessary, before an existing
targetfile
is
overwritten
rm [option(s)] file(s)
Removes the specified files from the file system.
Directories are not removed by
rm
unless the option
-r
is used.
-r
Deletes any existing subdirectories
-i
Waits for confirmation before deleting each file.
261
SUSE LINUX