rmdir Linux Command Cheatsheet

861




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