R3166-R3206-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101

30
Parameters
fileurl-source: Name of the source file.
fileurl-dest: Name of the target file or folder.
Description
Use the copy command 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 file testcfg.cfg in the current folder and save it as testbackup.cfg.
<Sysname> copy testcfg.cfg testbackup.cfg
Copy cfa0:/test.cfg to cfa0:/testbackup.cfg?[Y/N]:y
....
%Copy file cfa0:/test.cfg to cfa0:/testbackup.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 the delete file-url command to temporarily delete a file. The deleted file is saved in the recycle bin.
To restore it, use the undelete command.
The dir /all command displays the files deleted from the current directory and moved to the recycle bin.
These files are enclosed in pairs of square brackets [ ]. To remove the files from the recycle bin, use the
reset recycle-bin command.
The delete /unreserved file-url command permanently deletes a file, and the deleted file cannot be
restored. Use it with caution.
CAUTION:
If you delete two files with the same filename in different directories, only the last one is retained in the
recycle bin.
Examples
# Remove file tt.cfg from the current directory.
<Sysname> delete tt.cfg