GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • SS64
  • Linux
  • How-to

This view

  • Original page
  • New address

GeezerVison is showing ss64.com — rmdir Man Page - Linux

  • SS64
  • Linux
  • How-to

rmdir

Remove directory, this command will only work if the folders are empty.

Syntax
      rmdir [options]... folder(s)...

Options
      --ignore-fail-on-non-empty
                  Ignore each failure that is solely because the
                  directory is non-empty.

  -p, --parents   Remove explicit parent directories if being emptied

      --verbose   Output a diagnostic for every directory processed

      --help      Display help and exit

      --version   Output version information and exit

Examples

Remove the folder Harvey:

$ rmdir harvey

Before removing directories with a wildcard, it’s wise to list them all using ls -d first:

$ ls -d britney*/

“When you remove layers, simplicity and speed happen” ~ Ginni Rometty

Related Linux commands

cd - Change Directory.
find . -type d -empty -delete  - Delete all empty directories.
rm - Remove files (rm -rf will recursively remove folders and their contents).
ls -al - List information about files.
pwd - Print Working Directory.
Equivalent Windows commands: RD - Delete folders or entire folder trees (DELTREE).


 
Copyright © 1999-2026 SS64.com
Some rights reserved
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.