104
View
User view
Default Level
3: Manage level
Parameters
/all
: Displays all files.
file
-
url
: Name of the file or directory to be displayed. Asterisks (*) are acceptable as
wildcards. For example, to display files with the
.txt
extension under the current
directory, you may use the
dir *
.txt command.
Description
Use the
dir
command to display information about all visible files and folders in the
current directory.
Use the
dir /all
command to display information about all files and folders in the current
directory, including hidden files, hidden sub-folders and the files in the recycle bin that
originally belong to the current directory. The names of these deleted files are enclosed
in pairs of brackets [ ].
The
dir
file
-
url
command displays information about a file or folder.
Examples
Display information about all files and folders.
<Sysname> dir /all
Directory of flash:/
0 -rw- 10736924 Jul 25 2008 10:32:37 main.bin
1 -rw- 10348532 May 06 2008 17:55:20 backup.bin
2 -rw- 26348 Dec 06 2007 10:37:53 default.diag
3 -rw- 1494 Jul 30 2008 10:42:53 startup.cfg
4 -rw- 33 Jul 30 2008 10:42:47 system.xml
31750 KB total (9178 KB free)
[ ] indicates this file is in the recycle bin.
Table 7
dir
command output description
Field
Description
Directory of
The current working directory
d
Indicates a directory; if this field does not exist, it indicates a file.
r
Indicates that the file or directory is readable.
w
Indicates that the file or directory is writable.
h
Indicates that the file or directory is hidden.