rmdir -- remove empty directories


rmdir is as specified in the SUS but with differences as listed below.

LSB Deprecated Differences

The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.


ignores each failure that is solely because a directory is non-empty.


outputs a diagnostic for every directory processed.


displays this help and exits.


outputs version information and exits.