next up previous contents
Next: 1.4.20 shutdown Up: 1.4 Man Pages Previous: 1.4.18 rm   Contents

1.4.19 rmdir

rmdir - remove empty directories

rmdir [-p] [-parents] [-help] [-version] dir...

This documentation is no longer being maintained and may be inaccurate or incomplete. The Texinfo documentation is now the authoritative source.

This manual page documents the GNU version of rmdir. rmdir removes each given empty directory. If any non-option argument does not refer to an existing empty directory, it is an error.

-p, -parents
Remove any parent directories that are explicitly mentioned in an argument, if they become empty after the argument file is removed.
Print a usage message on standard output and exit successfully.
Print version information on standard output then exit successfully.