The dir command displays the specified file or directory in the AntiDDoS storage device.
By default, files in the current directory are displayed.
| Parameter | Description | Value |
|---|---|---|
| /all | Displays all files (including the deleted files). | - |
| filename | Specifies the name of the file or directory displayed. |
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. | - |
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.
# 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)