rmdir [Command]

Command rmdir

Deletes the specified directory (if it is empty).

Syntax

rmdir [options] directory

Options

-p: remove all parent directories which become empty.
-i: stands for interactively
-r: stands for recursively
-f: stands for forcefully

Description

The command rmdir removes empty directories. If the directory is not empty, you must remove all files along with the directory using the command rm -r.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.