Operation Manual – File System Management
H3C S3100 Series Ethernet Switches
Chapter 1 File System Management Configuration
1-2
Table 1-2
describes the directory-related operations.
Perform the following configuration in user view.
Table 1-2
Directory operations
To do…
Use the command…
Remarks
Create a directory
mkdir
directory
Optional
Delete a directory
rmdir
directory
Optional
Display the current work directory
pwd
Optional
Display the information about
specific directories and files
dir
[
/all
] [
file
-
url
]
Optional
Enter a specified directory
cd
directory
Optional
Note:
z
Only empty directories can be deleted by using the
rmdir
command.
z
In the output information of the
dir
/
all
command, deleted files (that is, those stored
in the recycle bin) are embraced in brackets.
1.1.4 File Operations
The file system also provides file-related functions listed in
Table 1-3
.
Perform the following configuration in user view. Note that the
execute
command
should be executed in system view.
Table 1-3
File operations
To do…
Use the command…
Remarks
Delete a file
delete
[
/unreserved
]
file
-
url
delete
{
running-files
|
standby-files
}
[
/unreserved
]
Optional
A deleted file can be
restored by using the
undelete
command if you
delete it by executing the
delete
command without
specifying the
/unreserved
keyword.
Restore a file in the
recycle bin
undelete
file
-
url
Optional
Delete a file from the
recycle bin
reset recycle-bin
[
file
-
url
] [
/force
]
Optional
Rename a file
rename fileurl
-
source
fileurl
-
dest
Optional