R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
36
dir
Syntax
dir [ /all ] [ file-url | /all-filesystems ]
View
User view
Default level
3: Manage level
Parameters
/all: Displays all files and folders in the current directory, including hidden files, hidden folders, files
moved from the current directory to the recycle bin. Files in the recycle bin are enclosed in square
brackets [ ].
file-url: Displays the specified file. Asterisks (*) are acceptable as wildcards. For example, to display files
with the .txt extension in the current directory, you may use the dir *.txt command.
/all-filesystems: Displays files and folders in the root directory of all storage media on the device.
Description
Use dir to display files or folders.
If no parameter is specified, the command displays all visible files and folders in the current directory.
Examples
# Display information about all files and folders.
<Sysname> dir /all
Directory of flash0:/
0 -rwh 896 Feb 17 2011 14:20:02 private-data.txt
1 -rw- 25535 Feb 17 2011 14:20:02 system.xml
2 -rw- 1780 Feb 17 2011 14:20:04 startup.cfg
3 -rw- 14617560 Feb 15 2011 15:23:29 main.bin
4 drw- - Jan 06 2011 14:46:09 domain1
5 -rw- 891 Jan 06 2011 14:46:18 default_ca.cer
6 -rw- 1411 Jan 06 2011 14:46:18 default_local.cer
7 -rwh 716 Jan 06 2011 14:46:18 hostkey
8 drw- - Jan 06 2011 14:46:07 seclog
9 -rw- 25135 Jan 13 2011 15:50:51 [system.xml]
1048192 KB total (1018016 KB free)
Table 9 Command output
Field Descri
p
tion
Directory of 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.