Easy Tutorial
❮ Linux Comm Lpd Linux Comm Uustat ❯

Linux rmdir Command

Linux Command Manual

The Linux rmdir (short for remove directory) command is used to delete empty directories.

Syntax

rmdir [-p] dirName

Parameters:

Examples

To delete the subdirectory named AAA under the working directory:

rmdir AAA

To delete the subdirectory named Test under the BBB directory in the working directory. If Test is deleted and BBB becomes an empty directory, BBB will also be deleted.

rmdir -p BBB/Test

Linux Command Manual

❮ Linux Comm Lpd Linux Comm Uustat ❯