You can even look at the directory
of
a disk which
isn't
currently
in
the driv
e,
by
specifying its volume name. For example, the contents
of
the freshly formatted
disk we relabeled can be displayed by the following command:
DIR
MyDisk:
AmigaDOS asks you to insert that disk into the drive to allow DIR
to
read
it
and
report the contents
of
the directory. Don't do
it
yet, though, because
th
ere are no
files present on that disk
ri
ght now for DIR to read.
We
'
ll
add some files soon.
Using the LIST Command
Try this command with your Workbench
di
sk
in
drive O.
The DIR
com
mand tells you the names
of
th
e files
in
your directory.
The LIST command takes
it
one step further, providing additional information
about those files. Type the command:
LIST
or
LIST
dfO:
AmigaDOS provides information about all
th
e files
in
the current directory,
including how large the file is, whether it can be deleted, whether
it
's
a fiule or
directory, and the date and time
of
its creation.
[f you specify the name
of
a directory with LIST,
it
li
sts information abo
ut
the
files within that directory:
LIST
c
The " rwed" in the
li
sting refers to protec
ti
on flags , standing for read , write,
execute asnd delete. When each
fl
ag is set (us
in
g
th
e PROTECT command), a
file is supposed to be readabl
e,
writable, executable or deleteable.
The PROTECT command can protect a file from being deleted acc
id
e
nt
a
ll
y.
AmigaDOS and the CLI
7-9