rmdir's Examples

rmdir command is used remove empty directories from the filesystem in Linux. The rmdir command removes each and every directory specified in the command line only if these directories are empty. So if the specified directory has some directories or files in it then this cannot be removed by rmdir command.

rmdir [-p] [-v | –verbose] [–ignore-fail-on-non-empty] directories