R3166-R3206-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
31
Delete cfa0:/tt.cfg? [Y/N]:y
.
%Delete file cfa0:/tt.cfg...Done.
dir
Syntax
dir [ /all ] [ file-url ]
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.
Description
Use the dir command 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 cfa0:/
0 drw- 6985954 Apr 26 2007 21:06:29 logfile
1 -rw- 1842 Apr 27 2007 04:37:17 mainup.bin
2 -rw- 1518 Apr 26 2007 12:05:38 config.cfg
3 -rw- 2045 May 04 2007 15:50:01 backcfg.cfg
4 -rwh 428 Apr 27 2007 16:41:21 hostkey
5 -rwh 572 Apr 27 2007 16:41:31 serverkey
6 -rw- 2737556 Oct 12 2007 01:31:44 [old.bin]
14605 KB total (5096 KB free)
[ ] indicates this file is in the recycle bin.
Table 10 Output description
Field Descri
p
tion
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.