
Command Manual - System Management
Quidway S3500 Series Ethernet Switches
Chapter 1 File System Management Commands
Huawei Technologies Proprietary
1-3
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.; By default, display the file information in current path.
Description
Using
dir
command, you can view the information about the specified file or directory in
storage device of Ethernet Switch.
Example
# Display the information about the file flash:/test/test.txt
<Quidway> dir flash:/test/test.txt
Directory of flash:/test/
-rwxrwxrwx 1 noone nogroup 971 Sep 20 2003 14:28:52 test.txt
7932928 bytes total (4966400 bytes free)
# Display information of directory flash:/test/
<Quidway> dir flash:/test/
Directory of flash:/test/
-rwxrwxrwx 1 noone nogroup 971 Sep 20 2003 14:28:52 test.txt
7932928 bytes total (4966400 bytes free)
# Display all files with the names starting with "t" in the directory flash:/test/
<Quidway> dir flash:/test/t*
Directory of flash:/test/