BSD 4_4_Lite2 development
[unix-history] / usr / share / man / cat1 / rmdir.0
RMDIR(1) BSD Reference Manual RMDIR(1)
N\bNA\bAM\bME\bE
r\brm\bmd\bdi\bir\br - remove directories
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
r\brm\bmd\bdi\bir\br _\bd_\bi_\br_\be_\bc_\bt_\bo_\br_\by _\b._\b._\b.
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
The rmdir utility removes the directory entry specified by each _\bd_\bi_\br_\be_\bc_\bt_\bo_\br_\by
argument, provided it is empty.
Arguments are processed in the order given. In order to remove both a
parent directory and a subdirectory of that parent, the subdirectory must
be specified first so the parent directory is empty when r\brm\bmd\bdi\bir\br tries to
remove it.
The r\brm\bmd\bdi\bir\br utility exits with one of the following values:
0 Each directory entry specified by a dir operand referred to an emp-
ty directory and was removed successfully.
>0 An error occurred.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
rm(1)
S\bST\bTA\bAN\bND\bDA\bAR\bRD\bDS\bS
The r\brm\bmd\bdi\bir\br command is expected to be IEEE Std1003.2 (``POSIX'') compati-
ble.
4.4BSD May 31, 1993 1