Command Reference Guide

3Com Router 3000 Ethernet Family
Command Reference Guide Chapter 4 File Management Commands
3Com Corporation
4-14
Description
Use the move command to move a file.
If the name of the target file is the same with the name of an existing directory, the
target file is moved to the directory, with the same file name. If the name of the target file
is the same with an existing file name, you are prompted whether the existing file
should be overwritten.
Example
<3com> dir
Directory of flash:/
0 -rw- 2145123 Jul 12 2001 12:28:08 AR46.bin
1 -rw- 595 Jul 12 2001 10:47:50 vrpcfg.cfg
2 drw- 0 Jul 12 2001 19:41:20 test
6477 KBytes total (2144 KBytes free)
<3com> dir flash:/test/
Directory of flash:/test/
0 drw- - Jul 12 2001 20:23:37 subdir
1 -rw- 595 Jul 12 2001 20:13:19 vrpcfg.cfg
2 -rw- 50 Jul 12 2001 20:08:32 sample.txt
6477 KBytes total (2144 KBytes free)
# Move the file from flash:/test/sample.txt to flash:/sample.txt.
<3com> move flash:/test/sample.txt flash:/sample.txt
Move flash:/test/sample.txt to flash:/sample.txt ?[Y/N]:y
% Moveded file flash:/test/sample.txt flash:/sample.txt
<3com> dir
Directory of flash:/
0 -rw- 2145123 Jul 12 2001 12:28:08 ne80.bin
1 -rw- 595 Jul 12 2001 10:47:50 vrpcfg.cfg
2 drw- 0 Jul 12 2001 19:41:20 test
3 -rw- 50 Jul 12 2001 20:26:48 sample.txt
6477 KBytes total (2144 KBytes free)
<3com> dir flash:/test/
Directory of flash:/test/
0 drw- - Jul 12 2001 20:23:37 subdir
1 -rw- 595 Jul 12 2001 20:13:19 vrpcfg.cfg
6477 KBytes total (2144 KBytes free)
4.1.15 pwd
Syntax
pwd