Default level
3: Manage level
Parameters
fileurl-source: Name of the source file.
fileurl-dest: Name of the target file or folder.
Description
Use copy to copy a file.
If you specify a target folder, the system will copy the file to the specified folder and use the name of the
source file as the file name.
Examples
# Copy the configuration file of the master to the Flash root directory of a subordinate device (with the
member ID 2).
<Sysname> copy vrcfg.cfg slot2#flash:/
Copy flash:/vrcfg.cfg to slot2#flash:/vrcfg.cfg?[Y/N]:y
%Copy file flash:/vrcfg.cfg to slot2#flash:/vrcfg.cfg...Done.
delete
Syntax
delete [ /unreserved ] file-url
View
User view
Default level
3: Manage level
Parameters
/unreserved: Permanently deletes the specified file, and the deleted file can never be restored.
file-url: Name of the file to be deleted. Asterisks (*) are acceptable as wildcards. For example, to remove
files with the extension of .txt in the current directory, you may use the delete *.txt command.
Description
Use delete file-url to temporarily delete a file. The deleted file is saved in the recycle bin. To restore it, use
the undelete command.
Use dir /all to display the files deleted from the directory and moved to the recycle bin. These files are
enclosed in pairs of brackets [ ].
Use reset recycle-bin to remove the files from the recycle bin.
Use delete /unreserved file-url to permanently delete a file, and the deleted file cannot be restored. Use
it with caution.
IMPORTANT:
If you delete two files with the same filename in different directories, only the last one is retained in the
recycle bin.
87