Command Reference Guide

3Com Router 5000 Family and Router 6000 Family rename 299
Command Reference
rename
Purpose Use the rename command to rename a file.
Syntax rename filename-source filename-dest
Parameters filename-source
Name of the source file.
filename-dest
Name of the target file.
Example <3Com> dir
Directory of flash:/
0 -rw- 2145123 Jul 12 2001 12:28:08 system.bin
1 -rw- 595 Jul 12 2001 10:47:50 vrpcfg.cfg
2 drw- - Jul 12 2001 19:41:20 test
3 -rw- 50 Jul 12 2001 20:26:48 sample.txt
6477 KBytes total (2144 KBytes free)
Rename file sample.txt to sample.bak.
<3Com> rename sample.txt sample.bak
Rename flash:/sample.txt to flash:/sample.bak ?[Y/N]:y
% Renamed file flash:/sample.txt flash:/sample.bak
<3Com> dir
Directory of flash:/
0 -rw- 2145123 Jul 12 2001 12:28:08 system.bin
1 -rw- 595 Jul 12 2001 10:47:50 vrpcfg.txt
2 drw- - Jul 12 2001 19:41:20 test
3 -rw- 50 Jul 12 2001 20:29:55 sample.bak
6477 KBytes total (2144 KBytes free)
View This command can be used in the following views:
User view
Description Note that the target file name must not be the same as an existing directory or file
name.
CAUTION:
If only one application file (system.bin if dual image is supported or
main.bin/backup.bin/secure.bin if dual image is not supported) exists in the system,
you cannot rename it. Any modification may cause boot failure when you upgrade
the application in the router.