3com 8807 User Guide

Page of 883
790
C
HAPTER
 68: F
ILE
 S
YSTEM
 M
ANAGEMENT
File Operation
The file system can be used to delete or undelete a file and permanently delete a 
file. Also, it can be used to display file contents, rename, copy and move a file and 
display the information about a specified file. You can use the following 
commands to perform file operations.
Perform the following configuration in user view.
CAUTION: When you use the delete command without the unreserved option 
to delete a file, the file is in fact saved in the recycle bin and still occupies some of 
the storage space. So, the frequent uses of this command may results in 
insufficient storage space of the switch. In this case, you should find out the 
unused files kept in the recycle bin and permanently delete them with the reset 
recycle-bin
 command to reclaim the storage space.
The directory and file names on the switch have the following limitation:
The maximum length of a directory or file name is 64 characters.
The maximum length of a full path name (containing the device name, single 
directory name and file name) is 136 characters.
The move command takes effect only when the source and destination files 
are in the same device.
Storage Device 
Operation
The file system can be used to format a specified memory device. You can use the 
following commands to format a specified memory device.
Switch supports compact flash (CF) card. After a CF card is inserted successfully, 
you can use such common commands as dircdcopydeletemove to perform 
operations on the files in the card. You can also stop the CF card through a 
command before dismounting it.
Display the current working directory 
pwd 
Display the information about directories or files 
dir [ / all ] [ file-url ] 
Change the current directory 
cd directory
Table 740   Directory operation
Operation Command 
Table 741   File operation
Operation 
Command 
Delete a file 
delete [ /unreserved ] file-url 
Undelete a file 
undelete file-url 
Delete a file from the recycle bin permanently 
reset recycle-bin [ file-url ] 
View contents of a file 
more file-url 
Rename a file 
rename fileurl-source fileurl-dest 
Copy a file 
copy fileurl-source fileurl-dest 
Move a file 
move fileurl-source fileurl-dest 
Display the information about directories or files 
dir [ / all ] [ file-url ] 
Execute the specified batch file (system view) 
execute filename