9 rmdir – CANOGA PERKINS CanogaOS Command Reference User Manual
Page 732
CanogaOS Command Line Reference
Revision 1.02
Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches
Page 732 of 855
Usage
This command is valid only for local file systems
Examples
In the following example, the file named Karen.1 is renamed test:
Switch# dir
Directory of flash:/
total 42
drwxr-xr-x 2 0 Jul 30 15:42 boot
drwxr-xr-x 3 0 Jan 1 1970 conf
drwxr-xr-x 2 0 Jan 1 1970 log
-rw-r----- 1 1020 Jul 29 19:18 startup-config.conf
-rw-r--r-- 1 10270 Jul 30 10:10 syslog
-rw-r--r-- 1 6886 Jul 29 23:59 test
63.0M bytes total (30.4M bytes free)
Switch# rename flash:/test flash:/test1
Related Commands
39.9 rmdir
To remove an existing directory in a Flash file system, use the rmdir command in Privileged EXEC
mode.
Command Syntax
rmdir directory-name
directory-name
The directory in flash:
Command Mode
Privileged EXEC
Usage
This command is valid only for local file systems
Examples
The following example creates a directory named newdir:
Switch# rmdir flash:/newdir
Are you sure to delete newdir? [yes/no]: y