Search⌘ K
AI Features

Remove a Directory in Bash

Understand how to use the rmdir command in Bash to remove empty directories effectively. Learn to delete multiple directories at once and explore options for removing nested directories and enabling verbose mode to track deletion steps.

We'll cover the following...

rmdir

Definition:

rmdir is the opposite of mkdir. It is used to remove the directory name given in the argument. This command is mainly used to ...