| 参数 | 参数说明 | 取值 |
|---|---|---|
| /all | 显示所有的文件(包括已删除的文件)。 | - |
| filename | 显示的文件或目录名。 |
支持使用通配符“ * ”匹配。 |
| /all-filesystems | 显示设备上所有存储介质根目录的文件信息。 | - |
支持使用通配符“ * ”匹配。
使用dir /all命令显示所有文件信息,包括已经删除的文件信息,已经删除的文件的名字用“ [ ] ”括起来表示,例如 [ text ] 。这种已删除文件可以使用undelete命令恢复,若要从回收站中彻底删除该文件,使用reset recycle-bin命令。
# 显示文件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)
# 显示目录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)