Zhone 5100 参照マニュアル

ページ / 186
CHAPTER 1
System commands
24    
Vpacket 5100/6100 Series Reference Manual
Renaming a file or directory
You can rename a specified filename or directory by issuing the rename command. If you want to 
change the name of the file to an identifying date, such as the date the code is downloaded or add 
a version letter or number, you can use this command.
Syntax: rename <current filename> <new filename> 
             rename directory <new directory name>
Arguments:
current filename
an 8-character name with a 3-character extension for the file 
that you want to rename
new filename
an 8-character name with a 3-character extension for the new 
file or directory name
new directory name
an 8-character name with a 3-character extension for the new 
directory name
Example:
In this example, the file name is changed from 
s020101
.bin to sip0624.bin, to include the date 
that the code was downloaded.
Removing a directory
You can remove a directory that you created for storage purposes by issuing the rmdir command. 
The maincode directory is permanent and cannot be deleted.
Warning. Directories that have been deleted cannot be recovered. You should make 
backup copies of information that you value for future use. 
Syntax: rmdir <directory name>
Argument:
directory name the name of the directory that you want to delete
Example:
VPacket# rename s020101.bin sip0624.bin
Renamed file s020101.bin to sip0624.bin
VPacket#
VPacket# rmdir myfiles
This action will delete the directory myfiles
Do you want to continue (y|n) [n]? y
Directory myfiles deleted
VPacket#
WARNING