Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rmdir(C) — OpenDesktop 1.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rm(C)


     RMDIR(C)                             UNIX System V



     Name
          rmdir - removes directories


     Syntax
          rmdir [-p] [-s] dirname ...


     Description
          rmdir removes the entries for  one  or  more  subdirectories
          from  a  directory.  A directory must be empty before it can
          be removed.  Note that the ``rm -r dir'' (command is a  more
          dangerous  alternative  to  rmdir.)  If the parent directory
          has the sticky bit set, removal occurs only if  one  of  the
          following is true:

               the parent directory is owned by the user
               the dirname directory is owned by the user
               the dirname directory is writable to the user
               the user is the super-user

          The -p option allows users to remove the  directory  dirname
          and its parent directories which become empty.  A message is
          printed on standard output as to whether the whole  path  is
          removed or part of the path remains for some reason.

          The -s option is used to suppress  the  message  printed  on
          standard error when -p is in effect.

          rmdir will refuse to remove the root directory of a  mounted
          filesystem.


     See Also
          rm(C)


     Diagnostics
          rmdir returns an  exit  code  of  0  if  all  the  specified
          directories are removed successfully.  Otherwise, it returns
          a non-zero exit code.


     Standards Conformance
          rmdir is conformant with:
          AT&T SVID Issue 2, Select Code 307-127.


     (printed 2/15/90)                                   RMDIR(C)

































































































































































































































































































































































































































































































































































Typewritten Software • bear@typewritten.org • Edmonds, WA 98026