File System Management Commands 403
Example
Change the current working directory of the switch to flash.
<SW5500>cd
flash:
<SW5500>pwd
unit1>flash:
copy Syntax
copy
file-source file-dest
View
User view
Parameter
file-source:
Source file name.
file-dest:
Destination file name.
Description
Use the copy command to copy a file.
When the destination filename is the same as that of an existing file, the system
will ask whether to overwrite it.
Example
Display current directory information.
<SW5500>dir
Directory of unit1>flash:/
0 -rw- 595 Jul 12 2001 19:41:50 test.txt
16125952 bytes total (13975552 bytes free)
Copy the file test.txt and save it as test.bak.
<SW5500>copy test.txt test.bak
Copy unit1>flash:/test/test.txt to unit1>flash:/test/test.bak ?
[Y/N]:y
% Copyed file flash:/test/test.txt flash:/test/test.bak ...Done.
Display current directory information.
<SW5500>dir
Directory of unit1>flash:/
0 -rw- 595 Jul 12 2001 19:41:50 test.txt
1 -rw- 595 Jul 12 2001 19:46:50 test.bak
16125952 bytes total (13974528 bytes free)
delete Syntax
delete [ / unreserved ]
file-path
View
User view