< Home

dir (user view)

Function

The dir command displays the specified file or directory in the FW storage device.

By default, files in the current directory are displayed.

Format

dir [ /all ] [ filename | /all-filesystems ]

Parameters

Parameter Description Value

/all

Displays all files (including the deleted files).

-

filename

Specifies the name of the file or directory displayed.

  • File name: The value is a string of 1 to 160 characters.
  • Directory name: The value is a string of 1 to 64 characters.

The wildcard "*" can be used in the dir command.

/all-filesystems

Displays information about files in the root directories of all storage media on a device.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

This command supports "*" wildcard.

The dir /all command can be used to display the information about all the files, including the deleted files. The names of the deleted files are denoted with "[]", for instance, [text].

The deleted files can be restored through the undelete command. The reset recycle-bin command can be used to delete the file from the recycle bin permanently.

The following table lists the default directories of hda1 displayed after you run the dir.

Table 1 Default directories of hda1

Directory Name

Function

var

Stores tftpd configurations.

shlogfile

Stores SSH configurations.

Only the USG6610E/6620E, USG6615E/6625E, USG6630E/6650E, USG6635E/6655E, USG6680E, and USG6712E/6716E support this parameter.

corelog

Stores device exception information. Only the USG6610E/6620E, USG6615E/6625E, USG6630E/6650E, USG6635E/6655E, USG6680E, and USG6712E/6716E support this parameter.

$_install_mod

Stores the dynamically loaded component packages.

vpnclient

Stores the SSL VPN client.

pki

Stores device certificates and CA certificates.

hidesshpubkey

Stores the public key of the preset SSH certificate.

hidepkirsakey_n

Stores encrypted PKI key pairs.

ssa

Stores asset data.

conf

Stores the SSL VPN license file.

nlog

Stores exported log files temporarily.

loc

Stores location information.

dhcp

Stores DHCP address pool data and client DUIDs. After DHCP data restoration is configured, the DHCP server generates lease.txt and conflict.txt files. The lease.txt file stores lease information, and the conflict.txt file stores conflicting IP addresses.

extcollect

Stores the extended diagnosis information exported from the web UI.

xml

Stores LTE instruction sets.

user

Stores the imported user information temporarily.

uldb

Stores administrator information.

umdb

Stores user information, including users' basic information, customized logo, and background image.

netconf

Stores the NETCONF connection and operating logs.

libnetconf

Stores the YANG model verification file.

isp

Stores ISP address files.

dbtosql

Stores database update files.

log

Stores system and diagnosis logs.

Logs are information output during device operating. You can view logs to learn about service running status and functional module operating status on the device.

web

Stores customized icons.

logo

Stores the icons used on the SSL VPN pages.

default-sdb

Stores the default signature database file and version information.

update

Stores post-upgrade signature database file and version information.

nge

Stores push information detected by the IAE.

iprpttn

Stores the public key of the IP reputation database.

Example

# Display the information about the file hda1:/test/test.txt

<sysname> dir hda1:/test/test.txt
Directory of hda1:/test/
 Idx   Attr  Size(Byte)     Date        Time(LMT)     FileName
   0   -rw-          80     Mar 09 2010 09:47:36      test.txt
2,540 KB total (394 KB free)

# Display the information about the file hda1:/test/

<sysname> dir hda1:/test/
Directory of hda1:/test/
Idx   Attr  Size(Byte)     Date      Time(LMT)     FileName
   0   -rw-         4  Mar 01 2010 21:19:27   sample.txt
   1   -rw-        80  Mar 09 2010 09:47:36   test.txt
2,540 KB total (394 KB free)
<sysname> dir hda1:/test/t*
Directory of hda1:/test/
 Idx   Attr  Size(Byte)     Date        Time(LMT)     FileName
   0   -rw-          80     Mar 09 2010 09:47:36      test.txt
2,540 KB total (394 KB free)
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >