No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
dir (user view)

dir (user view)

Function

The dir command displays information about files and directories stored on the storage device.

Format

dir [ /all ] [ filename | directory ]

Parameters

Parameter

Description

Settings

/all

Displays all files and directories stored in the current directory, including files and directories moved to the recycle bin from the current directory.

-

filename

Specifies the file name.

The value is a string of 1 to 64 case-sensitive characters without spaces in the [ drive ] [ path ] file name format.

In the preceding parameter, drive specifies the storage device name, and path specifies the directory and subdirectory.

You are advised to add : and / between the storage device name and directory. Characters ~, *, /, \, :, ', " cannot be used in the directory name.

directory

Specifies the file directory.

The value is a string of 1 to 64 case-sensitive characters without spaces in the [ drive ] path format.

In the preceding parameter, drive specifies the storage device name, and path specifies the directory and subdirectory.

You are advised to add : and / between the storage device name and directory. Characters ~, *, /, \, :, ', " cannot be used in the directory name.

Views

User view

Default Level

3: Management level

Usage Guidelines

The wildcard (*) can be used in the dir command. If no parameter is specified, this command displays information about the files and directories in the current directory.

The following describes the drive name:

  • drive is the storage device and is named flash:.

The path can be an absolute path or relative path.
  • flash:/my/test/ is an absolute path.

  • selftest/ is related to the current working directory and indicates the selftest directory in the current working directory.

You can use the dir /all command to view information about all files and directories of the storage device, including those stored in the recycle bin. The name of a file in the recycle bin is placed in square brackets ([]), for example, [test.txt].

Example

# Display information about all files and directories stored in the current directory.

<Huawei> dir /all
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time(LMT)  FileName
    0  -rw-            889  Feb 25 2012 10:00:58   private-data.txt
    1  -rw-          6,311  Feb 17 2012 14:05:04   backup.cfg
    2  -rw-            836  Jan 01 2012 18:06:20   rr.dat
    3  drw-              -  Jan 01 2012 18:08:20   syslogfile
    4  -rw-            836  Jan 01 2012 18:06:20   rr.bak
    5  drw-              -  Feb 27 2012 00:00:54   security
    6  -rw-        523,240  Mar 16 2011 11:21:36   bootrom_53hib66.bin
    7  -rw-          2,290  Feb 25 2012 16:46:06   vrpcfg.cfg
    8  -rw-            812  Dec 12 2011 15:43:10   hostkey
    9  drw-              -  Jan 01 2012 18:05:48   compatible
   10  -rw-     25,841,428  Nov 17 2011 09:48:10   basicsoft.cc
   11  -rw-            540  Dec 12 2011 15:43:12   serverkey
   12  -rw-     26,101,692  Dec 21 2011 11:44:52   devicesoft.cc
   13  -rw-          6,292  Feb 14 2012 11:14:32   1.cfg
   14  -rw-          6,311  Feb 17 2012 10:22:56   1234.cfg
   15  -rw-          6,311  Feb 25 2012 17:22:30   [11.cfg]

1,927,220 KB total (1,130,464 KB free)
                                

# Display information about file vrpcfg.cfg in the current directory.

<Huawei> dir vrpcfg.cfg
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time(LMT)  FileName
    0  -rw-          2,290  Feb 25 2012 16:46:06   vrpcfg.cfg

1,927,220 KB total (1,130,464 KB free)

# Display information about all .txt files stored in the current directory.

<Huawei> dir *.txt
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time(LMT)  FileName
    0  -rw-            889  Feb 25 2012 10:00:58   private-data.txt

1,927,220 KB total (1,130,464 KB free)
Table 2-26  Description of the dir command output

Item

Description

d

Indicates a directory. If there is no output for this parameter, the command output indicates a file. For example, devicesoft.cc is a file and security is a directory.

r

Indicates that the file or directory can be read.

w

Indicates that the file or directory is editable.

[ ]

Indicates a file stored in the recycle bin.

Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 210086

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next