DGS-3000 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
265
Parameters
<drive_id> - (Optional) Enter the drive ID used, for example, C:.
<pathname> - Specifies the file (in path form) to be renamed.
<filename> - Specifies the new name of the file.
Restrictions
Only Administrators and Operators can issue this command.
Example
To rename a file:
DGS-3000-26TC:admin#rename run.had run1.had
Command: rename run.had run1.had
Success.
31-7 del
Description
This command is used to delete a file, either physically or softly. It is also used to delete a directory
and its contents. If two files with the same name under the same directory are softly deleted
sequentially, only the last one will exist. Deleting, copying, renaming or moving the already softly
deleted file is not acceptable.
System will prompt if the target file is a firmware or configuration file of which the type is bootup.
Format
del {<drive_id>} <pathname> {recursive}
Parameters
<drive_id> - (Optional) Enter the drive ID used, for example, C:.
<pathname>- Specifies the file or directory to be deleted. If it is specified in the associated form,
then it is related to the current directory.
recursive - (Optional) Specifies to delete a directory and its contents, even if it’s not empty.
Restrictions
Only Administrators and Operators can issue this command.
Example
Delete a directory with parameter “recursive”: