File Management Commands
63
Description
Using the pwd command, you can display the current path.
If the current path has not been set, the operation will fail.
Example
Display the current path.
<3Com> pwd
flash:/test
rename
Syntax
rename filename_source filename_dest
View
User view
Parameter
filename_source: Name of the source file.
filename_dest: Name of the destination file.
Description
Using the rename command, you can rename a file.
If the name of the destination file is the same with the name of an existing
directory, the execution will fail. If the name of the destination file is the same with
an existing file, the operation will fail.
Example
<3Com> dir
Directory of *
0 -rw- 2145123 Jul 12 2001 12:28:08 ne.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:26:48 sample.txt
6477 KBytes total (2144 KBytes free)
Rename the 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 *
0 -rw- 2145123 Jul 12 2001 12:28:08 ne.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)
Summary of Contents for Router 3031
Page 6: ......
Page 686: ...686 CHAPTER 6 ROUTING PROTOCOL...
Page 758: ...758 CHAPTER 7 MULTICAST COMMON CONFIGURATION COMMANDS...