rmdir(1) DG/UX R4.11MU05 rmdir(1)
NAME
rmdir - remove directories
SYNOPSIS
rmdir [ -p ] [ -s ] dirname
DESCRIPTION
Rmdir removes entries for the named directories, which must be empty.
Options are:
-p Deletes the named directory and all its parent directories if
those directories are empty. Prints a message to standard
output indicating whether or not the whole path is removed or
part of the path remains.
-s Don't print messages to standard output when -p is in effect.
EXAMPLES
$ rmdir $HOME/ITEMS
The directory "ITEMS" is removed, if it is empty.
DIAGNOSTICS
Generally self-explanatory. You can't remove the parent directory
pointer file (..).
rmdir returns the following exit values:
0 Each directory entry was removed successfully.
>0 An error occurred.
SEE ALSO
rm(1), file(1), ls(1).
unlink(2)
NOTES
It is forbidden to remove the directories "." and ".." in order to
avoid the consequences of inadvertently doing something like the
following:
rmdir .*
Licensed material--property of copyright holder(s)