Reference v4.1.0 Instruction Manual

Network OS Command Reference 617
53-1003115-01
rename
2
rename
Renames a file in the switch flash memory.
Synopsis rename current_name new_name
Operands current_name The file name you want to change.
new_name The new file name.
Defaults None
Command Modes Privileged EXEC mode
Description Use this command to rename a user-generated file in the switch flash memory.
Usage Guidelines This command is supported only on the local switch.
System files cannot be renamed. If you try to rename a system file, a warning message is
displayed.
Examples To rename a file:
switch# rename myconfig.vcs myconfig.old
switch# dir
total 24
drwxr-xr-x 2 root sys 4096 Feb 13 00:39 .
drwxr-xr-x 3 root root 4096 Jan 1 1970 ..
-rwxr-xr-x 1 root sys 417 Oct 12 2010 myconfig.old
-rwxr-xr-x 1 root sys 417 Oct 12 2010 defaultconfig.novcs
-rwxr-xr-x 1 root sys 697 Oct 12 2010 defaultconfig.vcs
-rw-r--r-- 1 root root 6800 Feb 13 00:37 startup-config
See Also copy, delete, dir, show file