<s>
In	O
computing	O
,	O
rmdir	B-Device
(	O
or	O
rd	O
)	O
is	O
a	O
command	B-Application
which	O
will	O
remove	O
an	O
empty	O
directory	B-Application
on	O
various	O
operating	B-General_Concept
systems	I-General_Concept
.	O
</s>
<s>
The	O
command	B-Application
is	O
available	O
in	O
Unix	B-Application
(	O
e.g.	O
</s>
<s>
macOS	B-Application
,	O
Solaris	B-Application
,	O
AIX	B-Application
,	O
HP-UX	B-Application
)	O
,	O
Unix-like	B-Operating_System
(	O
e.g.	O
</s>
<s>
FreeBSD	B-Operating_System
,	O
Linux	B-Application
)	O
,	O
DOS	B-Device
,	O
Digital	B-Operating_System
Research	I-Operating_System
FlexOS	I-Operating_System
,	O
IBM	B-Application
OS/2	I-Application
,	O
Microsoft	B-Application
Windows	I-Application
or	O
ReactOS	B-Application
operating	B-General_Concept
systems	I-General_Concept
.	O
</s>
<s>
On	O
MS-DOS	B-Application
,	O
the	O
command	B-Application
is	O
available	O
in	O
versions	O
2	O
and	O
later	O
.	O
</s>
<s>
DR	O
DOS	B-Device
6.0	O
also	O
includes	O
an	O
implementation	O
of	O
the	O
command	B-Application
.	O
</s>
<s>
It	O
is	O
also	O
available	O
in	O
the	O
open	B-License
source	I-License
MS-DOS	B-Application
emulator	B-Application
DOSBox	B-Application
and	O
in	O
KolibriOS	B-Operating_System
.	O
</s>
<s>
where	O
name_of_directory	O
corresponds	O
with	O
the	O
name	O
of	O
the	O
directory	B-Application
one	O
wishes	O
to	O
delete	O
.	O
</s>
<s>
There	O
are	O
options	O
to	O
this	O
command	B-Application
such	O
as	O
-p	O
in	O
Unix	B-Application
which	O
removes	O
parent	B-Application
directories	I-Application
if	O
they	O
are	O
also	O
empty	O
.	O
</s>
<s>
will	O
first	O
remove	O
baz/	O
,	O
then	O
bar/	O
and	O
finally	O
foo/	O
thus	O
removing	O
the	O
entire	O
directory	B-Application
tree	I-Application
specified	O
in	O
the	O
command	B-Application
argument	O
.	O
</s>
<s>
rmdir	B-Device
will	O
not	O
remove	O
a	O
directory	B-Application
if	O
it	O
is	O
not	O
empty	O
in	O
UNIX	B-Application
.	O
</s>
<s>
The	O
command	B-Application
will	O
remove	O
a	O
directory	B-Application
and	O
all	O
its	O
contents	O
recursively	O
.	O
</s>
<s>
Normal	O
usage	O
is	O
identical	O
to	O
Unix-like	B-Operating_System
operating	I-Operating_System
systems	I-Operating_System
:	O
</s>
<s>
The	O
equivalent	O
command	B-Application
in	O
MS-DOS	B-Application
and	O
earlier	O
(	O
non-NT-based	O
)	O
versions	O
of	O
Microsoft	B-Application
Windows	I-Application
for	O
deleting	O
non-empty	O
directories	B-Application
is	O
.	O
</s>
<s>
In	O
later	O
version	O
of	O
Windows	B-Application
:	O
</s>
<s>
Windows	B-Application
based	O
on	O
the	O
NT	O
kernel	O
(	O
XP	O
,	O
Vista	O
,	O
7	O
,	O
8	O
,	O
Server	O
2003/2008	O
)	O
are	O
case	O
insensitive	O
,	O
just	O
like	O
their	O
earlier	O
predecessors	O
,	O
unless	O
two	O
files	O
of	O
the	O
same	O
name	O
and	O
different	O
case	O
exist	O
.	O
</s>
<s>
Then	O
case	O
sensitivity	O
applies	O
when	O
selecting	O
which	O
file	O
to	O
use	O
,	O
or	O
if	O
the	O
case	O
does	O
not	O
match	O
either	O
file	O
,	O
one	O
may	O
be	O
chosen	O
by	O
Windows	B-Application
.	O
</s>
<s>
Having	O
two	O
files	O
named	O
the	O
same	O
with	O
different	O
case	O
sensitivity	O
is	O
allowed	O
either	O
when	O
Windows	B-Application
Services	O
for	O
Unix	B-Application
is	O
installed	O
or	O
when	O
the	O
Windows	B-Protocol
Registry	I-Protocol
settings	O
are	O
set	O
to	O
allow	O
it	O
.	O
</s>
<s>
Using	O
rd/rmdir	O
and	O
two	O
directories	B-Application
with	O
the	O
same	O
name	O
and	O
different	O
case	O
sensitivities	O
exist	O
,	O
one	O
of	O
which	O
contains	O
valid	O
data	O
and/or	O
programs	O
,	O
and	O
the	O
other	O
contains	O
incriminating	O
materials	O
and/or	O
malware	O
.	O
</s>
<s>
If	O
rd/rmdir	O
gets	O
executed	O
without	O
regard	O
to	O
case	O
sensitivity	O
and	O
Windows	B-Application
chooses	O
the	O
legitimate	O
folder	O
to	O
delete	O
,	O
the	O
only	O
folder	O
left	O
is	O
the	O
undesired	O
one	O
.	O
</s>
<s>
Windows	B-Application
then	O
uses	O
this	O
folder	O
instead	O
of	O
the	O
previously	O
legitimate	O
one	O
to	O
execute	O
programs	O
,	O
and	O
one	O
may	O
be	O
led	O
to	O
believe	O
it	O
contains	O
legitimate	O
data	O
.	O
</s>
