rmdir man page on HP-UX

Printed from http://www.polarhome.com/service/man/?qf=rmdir&af=0&tf=2&of=HP-UX

rmdir(1)							      rmdir(1)

NAME
       rmdir - remove directories

SYNOPSIS
       dir ...

DESCRIPTION
       removes	the  directory	entry  for  each dir operand that refers to an
       empty directory.

       Directories are removed in the order  specified.	  Consequently,	 if  a
       directory  and  a  subdirectory of that directory are both specified as
       arguments, the subdirectory must be specified before the parent	direc‐
       tory  so	 that  the parent directory will be empty when tries to remove
       it.  Removal of a directory requires write and search (execute) permis‐
       sion  in	 its  parent  directory,  but  no permissions on the directory
       itself; but if the sticky bit is set on the parent directory, only  the
       owner  of  the  directory, the owner of the parent directory, or a user
       having appropriate privileges can remove the directory.

   Options
       recognizes the following options:

	      Force each directory to be removed without prompting for
		     confirmation, regardless of the presence of  the  option.
		     This option also suppresses diagnostic messages regarding
		     non-existent operands.

		     This option does not  suppress  any  diagnostic  messages
		     other  than  those	 regarding  non-existent operands.  To
		     suppress all error message and interactive	 prompts,  the
		     option  should  be	 used  while  redirecting the standard
		     error output to

		     This  option  ignores  any	 previous  occurrence  of  the
		     option.

	      Write a prompt to the standard error output requesting confirma‐
	      tion
		     before removing each directory.

		     This  option  ignores  any	 previous  occurrence  of  the
		     option.

	      Path removal.
		     If,  after	 removing a directory with more than one path‐
		     name component, the parent directory of that directory is
		     now empty, removes the empty parent directory.  This con‐
		     tinues until encounters a non-empty parent directory,  or
		     until  all	 components of the original pathname have been
		     removed.

		     When used in conjunction with the option, asks whether to
		     remove each directory component of a path.

EXTERNAL INFLUENCES
   Environment Variables
       provides	 a  default  value for the internationalization variables that
       are unset or null. If is unset or null, the default value of  "C"  (see
       lang(5)) is used. If any of the internationalization variables contains
       an invalid setting, will behave as if  all  internationalization	 vari‐
       ables are set to "C".  See environ(5).

       If  set	to  a  non-empty string value, overrides the values of all the
       other internationalization variables.

       determines the interpretation of dir names as single and/or  multi-byte
       characters,  the	 classification	 of  characters	 as printable, and the
       characters matched by character class expressions  in  regular  expres‐
       sions.

       determines the locale that should be used to affect the format and con‐
       tents of diagnostic messages written to standard error and  informative
       messages written to standard output.

       determines the location of message catalogues for the processing of

   International Code Set Support
       Single- and multi-byte character code sets are supported.

DIAGNOSTICS
       Generally self-explanatory.  Note that the option does not suppress all
       diagnostic messages.

EXAMPLES
       To remove directories with a prompt for verification:

	      directories

       To remove as much as possible of a path, type:

SEE ALSO
       rm(1), rmdir(2), stat(2).

STANDARDS CONFORMANCE
       rmdir: SVID2, XPG2, XPG3, XPG4

								      rmdir(1)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net