C613-50170-01 Rev B
Command Reference for x510 Series
140
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
F
ILE
AND
C
ONFIGURATION
M
ANAGEMENT
C
OMMANDS
RMDIR
rmdir
Overview
This command removes a directory. This command only works on empty
directories, unless you specify the optional
force
keyword.
Syntax
rmdir [force] <
name
>
Mode
Privileged Exec
Usage
In a stacked environment you can use the CLI on a stack master to access
filesystems that are located on another stack member. See the
page 106 for syntax details.
Examples
To remove the directory “images” from the top level of the Flash filesystem, use the
command:
awplus#
rmdir flash:/images
To create a directory called “level1” containing a subdirectory called “level2”, and
then force the removal of both directories, use the commands:
awplus#
mkdir level1
awplus#
mkdir level1/level2
awplus#
rmdir force level1
To remove a directory called “test” from the top level of the Flash filesystem on
stack member 3, use the command:
awplus#
rmdir awplus-3/flash:/test
Note that you must specify the filesystem (
flash:
in this example).
Related
Commands
Parameter
Description
force
Optional keyword that allows you to delete directories that
are not empty and contain files or subdirectories.
<
name
>
The name and path of the directory.