rmdir Linux Command Cheatsheet
rmdir Linux Command is used to remove an empty directory.
Syntax
rmdir [Option(s)] [name-of-directory]
Options
Option | Description |
---|---|
-p | removes parent directories if they are also empty |
Examples
Removing an empty directory
rmdir movies #=> removes movies directory