rmdir Linux Command Cheatsheet




rmdir Linux Command is used to remove an empty directory.

Syntax

rmdir [Option(s)] [name-of-directory]

Options

OptionDescription
-premoves parent directories if they are also empty

Examples

Removing an empty directory

rmdir movies #=> removes movies directory


┬ęCopyright 2020 OneCompiler | Privacy Policy | Terms & Conditions