Dir - Huawei Quidway S8500 Series Command Manual

Routing switches
Hide thumbs Also See for Quidway S8500 Series:
Table of Contents

Advertisement

Command Manual – System Management
Quidway S8500 Series Routing Switches
This command supports wildcard characters. The deleted files are kept in the recycle
bin and will not be displayed when you use the dir command. However they will be
displayed, using the dir /all command. The files deleted by the delete command can be
recovered with the undelete command or deleted permanently from the recycle bin,
using the reset recycle-bin command.
Note that, if two files with the same name in a directory are deleted, only the latest
deleted file will be kept in the recycle bin.
Example
# Delete the file flash:/test/test.txt
<Quidway> delete flash:/test/test.txt
Delete flash:/test/test.txt?[Y/N]:

1.1.4 dir

Syntax
dir [ /all ] [ file-url ]
View
User view
Parameter
/all: Display all the files (including the deleted ones).
file-url: File or directory name to be displayed. The file-url parameter supports "*"
matching. For example, using dir *.txt will display all the files with the extension txt in
the current directory.
Description
Use the dir command to view the information about the specified file or directory in
storage device of Ethernet Switch. This command supports wildcard characters.
Example
# Display the information about the file flash:/test/test.txt
<Quidway> dir flash:/test/test.txt
Directory of flash:/test/
-rwxrwxrwx
7932928 bytes total (4966400 bytes free)
# Display the information about all the files (including the deleted ones) in the
flash:/test/ directory.
<Quidway> dir /all flash:/test/
Directory of flash:/test/
1 noone
nogroup
Huawei Technologies Proprietary
1-3
Chapter 1 File System Management Commands
971
Sep 20 2003 14:28:52
test.txt

Advertisement

Table of Contents
loading

Table of Contents