NAME | SYNOPSIS | DESCRIPTION | DIAGNOSTICS | ATTRIBUTES | SEE ALSO
rmdir is a target utility.
The rmdir utility removes the directory entry specified by each directory argument, provided it is empty.
Arguments are processed in the order given. In order to remove both a parent directory and a subdirectory of that parent, the subdirectory must be specified first so that the parent directory is empty when rmdir tries to remove it.
This utility exits with 0 if each directory entry specified by a dir operand referred to an empty directory and was removed successfully, otherwise a value of > 0 is returned.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | DESCRIPTION | DIAGNOSTICS | ATTRIBUTES | SEE ALSO