424
C
37: F
S
HAPTER
ILE
YSTEM
n
File Operations
c
M
C
ANAGEMENT
ONFIGURATION
Only empty directories can be deleted by using the rmdir command.
■
In the output information of the dir /all command, deleted files (that is, those
■
stored in the recycle bin) are embraced in brackets.
The file system also provides file-related functions listed in Table 320.
Perform the following configuration in user view. Note that the execute
command should be executed in system view.
Table 320 File operations
To do...
Delete a file
Restore a file in the recycle bin undelete file-url
Delete a file from the recycle
bin
Rename a file
Copy a file
Move a file
Display the content of a file
Display the information about
a directory or a file
Enter system view
Execute the specified batch
file
CAUTION:
For deleted files whose names are the same, only the latest deleted file is kept
■
in the recycle bin and can be restored.
The files which are deleted by the delete command without the /unreserved
■
keyword are actually moved to the recycle bin and thus still take storage space.
You can clear the recycle bin by using the reset recycle-bin command.
The dir /all command displays the files in the recycle bin in square brackets.
■
If the configuration files are deleted, the switch adopts the null configuration
■
when it starts up next time.
Use the command...
delete [ /unreserved ] file-url
delete { running-files |
standby-files } [
/unreserved ]
reset recycle-bin [ file-url ] [
/force ]
rename fileurl-source
fileurl-dest
copy fileurl-source fileurl-dest Optional
move fileurl-source
fileurl-dest
more file-url
dir [ /all ] [ file-url ]
system-view
execute filename
Remarks
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.
Optional
Optional
Optional
Optional
Optional
Currently, the file system only
supports displaying the
contents of text files.
Optional
-
Optional
This command should be
executed in system view.
Need help?
Do you have a question about the 4210 PWR and is the answer not in the manual?