Command Reference Guide

3Com Router 3000 Ethernet Family
Command Reference Guide Chapter 4 File Management Commands
3Com Corporation
4-8
Caution:
If there is only one application file (system file) in the system, you are not allowed to
delete the file.
Example
# Delete file flash:/test/test.txt.
<3com> delete flash:/test/test.txt
Delete flash:/test/test.txt?[Y/N]: y
%Deleted file flash:/test/test.txt.
# Delete file cflash:/test/test.txt.
<3com> delete cflash:/test/test.txt
Delete cflash:/test/test.txt?[Y/N]:y
%Deleted file cflash:/test/test.txt.
4.1.7 dir
Syntax
dir [ /all | filename ]
View
User view
Parameter
/all: Displays all files (including the deleted files).
filename: Name of the file or directory to be displayed including the path.
Description
Use the dir command, you can view information about the specified file or directory in
the router storage device.
By default, this command displays the file information under the current directory.
This command accepts asterisks (*) as wildcards.
The dir /all command can display information about all the files, including those in the
recycle bin. The names of these deleted files are enclosed by "[]", for example,
[temp.cfg]. Such deleted files can be restored using the undelete command. To
remove the files from the recycle bin completely, use the reset recycle-bin command.
The dir /h command displays information about the private files under the current path.
The attribute of the private files is represented by “---h”.