Command Reference Guide

3Com Router 5000 Family and Router 6000 Family copy 49
Command Reference
copy
Purpose Use the copy command to copy a file.
Syntax copy filename-source filename-dest
Parameters filename-source
Name of the source file.
filename-dest
Name of the target file or directory.
Example <3Com> pwd
flash:
<3Com> dir
Directory of flash:/
0 -rw- 7654528 Oct 10 2002 10:10:10 system
1 -rw- 4 Aug 23 2052 15:44:54 snmpboots
2 -rw- 300 Aug 23 2052 15:45:58 vrpcfg.cfg
15621 KB total (8140 KB free)
Copy the file vrpcfg.cfg from Flash memory to the backup directory that has been
created.
<3Com> copy vrpcfg.cfg backup
Copy flash:/vrpcfg.txt to flash:/backup/vrpcfg.cfg ?[Y/N]:y
% Copied file flash:/vrpcfg.cfg to flash:/backup/vrpcfg.cfg
<3Com> dir
Directory of flash:/backup/
0 -rw- 300 Aug 23 2052 15:57:46 vrpcfg.cfg
15621 KB total (8137 KB free)
Copy file tt from the Flash to the CF card.
<3Com> copy flash:/tt cflash:
View This command can be used in the following views:
User view
Description If the name of the target file is the same with an existing directory name, the target
file is copied to the directory. If the name of the target file is the same with the name
of the existing file, the system asks whether to overwrite the exiting file.