Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

rmdir

Remove empty directories

Syntax

rmdir [OPTION]... DIRECTORY...

Common Options

-pRemove parent directories
-vVerbose
--ignore-fail-on-non-emptyIgnore non-empty errors

Common Examples

rmdir emptydir

Remove empty directory

rmdir -p a/b/c

Remove directory and parents

Related Commands

Related Tools

More Code & Dev Tools