Linux rmdir command

rmdir Remove the DIRECTORY(ies), if they are empty.

Syntax:

rmdir [OPTION]… DIRECTORY…

Example:
To remove empty directory

rmdir directory_name

To remove non-empty directory use rm command.

Options:
Linux rmdir command

Powered by k2schools
Skip to toolbar