9 rmdir, Rmdir – PLANET WGSW-52040 User Manual

Page 121

Advertising
background image

2-120

Change the name of file “nos.img” in the current working directory to “nos-6.1.11.0.img”.

Switch# rename nos5.img nos-6.1.11.0.img

Rename flash:/nos5.img to flash:/nos-6.1.11.0.img ok!

2.9 rmdir

Command:

rmdir <directory>

Function:

Delete a sub-directory in the designated directory on a certain device .

Parameters:

<directory> is the sub-directory name, a sequence of consecutive characters whose length ranges from 1 to 80.

Command Mode:

Admin Mode.

Default Settings:

None.

Usage Guide:

The directory to be deleted should exist and be empty, that is, all files in the directory should be deleted before

deleting it, or an error prompt will be displayed.

Advertising