xStack® DGS-3620 Series Layer 3 Managed Stackable Gigabit Switch CLI Reference Guide
506
38-6 rename
Description
This command is used to rename a file or a directory in the file system. The pathname specifies
the file (in path form) to be renamed and the file name specifies the new file name. If the path
name is not a full path, then it refers to a path under the current directory for the drive. The
renamed file will stay in the same directory.
Format
rename {{unit <unit_id>} <drive_id>} <pathname> <filename>
Parameters
unit - Specifies the unit ID in the stacking system. If not specified, it refers to the master unit.
<unit_id> - Enter the unit ID value here.
<drive_id> - Specifies the drive ID. If not specified, it refers to the current drive.
<pathname> - Enter the file (in path form) to be renamed.
<filename> - Enter the new name of the file.
Restrictions
Only Administrators and Operators can issue this command.
Example
To rename a file or directory:
DGS-3620-28PC:admin#rename run.had run1.had
Command: rename run.had run1.had
Success.
38-7 erase
Description
This command is used to delete a file stored in the file system. The system will prompt if the target
file is a bootup image/configuration or the last image.
Format
erase {{unit <unit_id>} <drive_id>} <pathname>
Parameters
unit - Specifies the unit ID in the stacking system. If not specified, it refers to the master unit.