3com 4500 26-PORT Manuel D’Utilisation
File System Management Commands
301
<4500>
dir
Syntax
dir [ /all ] [ file-path ]
View
User view
Parameter
/all:
Display all the files (including the deleted ones).
file-path
: File or directory name to be displayed. The
file-path
parameter
supports “*” matching. For example, using
dir *.txt
will display all the files with
the extension
txt
in the current directory.
dir
without any parameters will display the file information in the current
directory.
Description
Use the
dir
command to display the information about the specified file or
directory in the storage device of the Switch.
Example
Display the information for file
flash:/test/test.txt
<4500>dir flash:/test/test.txt
Directory of unit1>flash:/test/test.txt
1 -rw- 248 Aug 29 2000 17:49:36 text.txt
20578304 bytes total (3104544 bytes free)
Display information for directory flash:/test/
<4500>dir flash:/test/
Directory of unit1>flash:/test/
1 -rw-
248
Aug 29 2000 17:49:36 test.txt
20578304 bytes total (3104544 bytes free)
Display all of the files with names starting with "t" in directory flash:/test/
<4500>dir flash:/test/t*
Directory of unit1>flash:/test/t*
1 -rw-
248
Aug 29 2000 17:49:36 test.txt
20578304 bytes total (3104544 bytes free)
Display information about all of the files (including the deleted files) in directory
flash:/test/
flash:/test/
<4500>dir /all flash:/test/
Directory of unit1>flash:/test/
1 -rw-
248
Aug 29 2000 17:49:36 text.txt
20578304 bytes total (3104544 bytes free)
Display information about all of the files (including the deleted files) with names
starting with "t" in
starting with "t" in
flash:/test/
<4500>dir /all flash:/test/t*
Directory of unit1>flash:/test/t*