Download   Online Shop   Red Hat Network
Home  |  Products & Services  |  Support  |  Training  |  Partners  |  Documentation   
Red Hat Documentation: man pages: man1: User Commands (1)

Manpage of RMDIR

RMDIR

Section: User Commands (1)
Updated: August 1998
Index  

NAME

rmdir - remove empty directories  

SYNOPSIS

rmdir [options] directory...

POSIX options: [-p]

GNU options (shortest form): [-p] [--help] [--version] [--]  

DESCRIPTION

rmdir removes empty directories.

If any directory argument does not refer to an existing empty directory, it is an error.  

POSIX OPTIONS

-p
If directory includes more than one pathname component, remove it, then strip the last component and remove the resulting directory, etc., until all components have been removed. Thus, `rmdir -p a/b/c' is equivalent to `rmdir a/b/c; rmdir a/b; rmdir a'.
 

GNU OPTIONS

-p, --parents
As above.
 

GNU STANDARD OPTIONS

--help
Print a usage message on standard output and exit successfully.
--version
Print version information on standard output, then exit successfully.
--
Terminate option list.
 

ENVIRONMENT

The variables LANG, LC_ALL, LC_CTYPE and LC_MESSAGES have the usual meaning.  

CONFORMING TO

POSIX 1003.2  

EXAMPLE OF USE

The command `rmdir foo' will remove the directory foo if it is empty. To remove a nonempty directory, together with everything below, use `rm -r foo'.  

NOTES

This page describes rmdir as found in the fileutils-3.16 package; other versions may differ slightly. Mail corrections and additions to aeb@cwi.nl and aw@mail1.bet1.puv.fi and ragnar@lightside.ddns.org . Report bugs in the program to fileutils-bugs@gnu.ai.mit.edu.


 

Index

NAME
SYNOPSIS
DESCRIPTION
POSIX OPTIONS
GNU OPTIONS
GNU STANDARD OPTIONS
ENVIRONMENT
CONFORMING TO
EXAMPLE OF USE
NOTES

This document was created by using the manual pages.
Time: 11:46:34 GMT, March 24, 2025

 

 
 
Search for:  on    Powered by Google
Products & Services   :   Download   :   Support   :   Training   :   Partners & Programs
© 2001 Red Hat, Inc. All right reserved.       About Red Hat   :   Legal statement   :   Privacy statement   :   Y2K statement   :   Contact Red Hat