dir (user view)

Function

The dir command displays the specified file or directory in the AntiDDoS 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.

Example

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

<sysname> dir cfcard:/test/test.txt
Directory of cfcard:/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 cfcard:/test/

<sysname> dir cfcard:/test/
Directory of cfcard:/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 cfcard:/test/t*
Directory of cfcard:/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)
Related Topics
undelete
reset recycle-bin

Copyright © Huawei Technologies Co., Ltd.