Linux Commands Helper

💬 Your AI-powered Linux assistant

rmdir Command - Remove Empty Directories

The rmdir command is used to delete empty directories from the file system.

Syntax

rmdir [options] directory...

Examples

rmdir emptydir

Remove the empty directory named emptydir.

rmdir -p parent/child/emptydir

Remove emptydir and its empty parent directories if they exist.

Notes

  • rmdir will fail if the directory is not empty.
  • The -p option allows removal of empty parent directories as well.

© 2025 Linux Commands Helper. All rights reserved.

This project is under construction. Feedback and contributions are welcome.

Fazier badgeFeatured on Startup Fame