File Management Tasks
Example:
Directory of cf1:\test1\
A:ALA-1>file cf1:\test1\ #
Deleting Files and Removing Directories
Use the delete and rd commands to delete files and remove directories. Directories can be
removed even if they contain files and/or subdirectories. To remove a directory that contains
files and/or subdirectories, use the rd rf command. When files or directories are deleted, they
cannot be recovered.
The force option deletes the file or directory without prompting the user to confirm.
Use the CLI syntax displayed below to delete files and then remove directories:
CLI Syntax:
The following displays an example of the command syntax:
A:ALA-1>file cf1:\test1\ # delete test.cfg
A:ALA-1>file cf1:\test1\ # delete abc.cfg
A:ALA-1>file cf1:\test1\test2\ # cd test3
A:ALA-1>file cf1:\test1\test2\test3\ # cd ..
A:ALA-1>file cf1:\test1\test2\ # rd test3
A:ALA-1>file cf1:\test1\test2\ # cd ..
A:ALA-1>file cf1:\test1\ # rd test2
A:ALA-1>file cf1:\test1\ # cd ..
A:ALA-1>file cf1:\ # rd test1
A:ALA-1>file cf1:\ #
Use the CLI syntax displayed below to remove a directory without first deleting files or
subdirectories:
176
A:ALA-1>file cf1:\test1\test2\test3\ # move test.cfg
cf1:\test1
cf1:\test1\test2\test3\test.cfg
A:ALA-1>file cf1:\test1\test2\test3\ # cd ..
A:ALA-1>file cf1:\test1\test2\ # cd ..
A:ALA-1>file cf1:\test1\ # dir
05/04/2006 07:58a
05/04/2006 07:06a
05/04/2006 07:06a
05/04/2006 07:58a
1 File(s)
3 Dir(s)
file#
delete file-url [force]
rd file-url [force]
<DIR>
.
<DIR>
..
<DIR>
test2
25278 test.cfg
25278 bytes.
1056256 bytes free.
Basic System Configuration Guide