RMDIR(1) General Commands Manual RMDIR(1)

rmdirremove directories

rmdir [-pv] [--ignore-fail-on-non-empty] directory...

The rmdir utility removes each given directory.

Ignore failures to remove non-empty directories
Remove all parents directories present in the directory argument, but not beyond. This is effectively the opposite of mkdir -p directory
Verbose, print each action done

The rmdir utility exits 0 on success, and >0 if an error occurs.

rm(1)

rmdir should be compliant with the IEEE Std 1003.1-2024 (“POSIX.1”) specification.

The -v and --ignore-fail-on-non-empty options are extensions.

Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>

2024-08-30 Linux 6.6.67-gentoo-x86_64