95
dir
Use
dir
to display files or folders.
Syntax
dir
[ /
all
] [
file
-
url
| /
all-filesystems
]
Views
User view
Default command level
3: Manage level
Parameters
/all
: Displays all files and folders in the current directory, including hidden files, hidden folders, and 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, use the
dir *
.txt command.
/
all-filesystems
: Displays files and folders in the root directory of all storage media on the device.
Usage guidelines
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 in the storage medium of the master.
<Sysname> dir /all
Directory of flash:/
0 -rwh 4 JAN 26 2012 12:02:05 snmpboots
1 -rw- 10187730 JAN 26 2012 16:47:07 startup.bin
2 -rwh 3144 JAN 26 2012 13:45:35 private-data.txt
3 -rw- 2161 JAN 26 2012 13:53:25 startup.cfg
4 -rw- 10058752 JAN 19 2012 17:41:46 startup_b58.bin
5 -rw- 10139143 JAN 26 2012 13:08:20 startup_b59.bin
6 -rwh 716 JAN 26 2012 12:01:58 hostkey
7 -rwh 572 JAN 26 2012 12:02:11 serverkey
8 -rwh 548 JAN 26 2012 12:02:17 dsakey
9 -rw- 3035 JAN 26 2012 13:45:42 new-config.cfg
10 -rw- 2200 JAN 26 2012 14:58:35 [aa.cfg]
515712 KB total (1801 KB free)
# Display files and folders in the root directory of all storage media on the IRF fabric. (The output
depends on your device model.)
<Sysname> dir /all
Directory of flash:/
0 -rw- 12948314 JAN 11 2012 15:15:00 s5800h3cd.bin
1 drw- - JAN 26 2012 12:00:54 seclog