Command Manual - System Management
Quidway S6500 Series Ethernet Switches Chapter 1 File System Management Commands
Huawei Technologies Proprietary
1-11
Description
Using rmdir command, you can cancel a directory.
The directory to be deleted must be empty.
Note that : After you execute rmdir command, the file originally belonging to the
directory is deleted automatically in the recycle bin.
Example
# Delete the directory hello.
<Quidway> rmdir hello
The files in the recycle-bin under this directory will be deleted permanently,
Remove flash:/hj?[Y/N]:y
...
%Removed directory flash:/ hello.
1.1.16 undelete
Syntax
undelete file-url
View
User view
Parameter
file-url: The name of the file to be recovered.
Description
Using undelete command, you can recover deleted file.
The file name to be recovered cannot be the same as an existing directory name. If the
destination file name is the same as an existing file name, prompt whether to overwrite.
Example
# Recover the deleted file sample.bak.
<Quidway> undelete sample.bak
Undelete flash:/sample.bak ?[Y/N]:y
%Undeleted file flash:/sample.bak