16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

mdir — Remove a directory<br />

Format<br />

Description<br />

Options<br />

Localization<br />

Exit Values<br />

Messages<br />

Portability<br />

Related Information<br />

mkdir, rm<br />

rmdir [–p] directory ...<br />

rmdir removes each requested directory. Each directory must be empty for rmdir to<br />

be successful.<br />

–p Removes all intermediate components. For example:<br />

rmdir -p abc/def/ghi<br />

is equivalent to:<br />

rmdir abc/def/ghi<br />

rmdir abc/def<br />

rmdir abc<br />

rmdir uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 Failure because directory is not a directory, or because it still contains files<br />

or subdirectories<br />

2 Failure because of an incorrect command-line option, or no directory names<br />

specified<br />

Possible error messages include:<br />

Nonempty directory<br />

Files or other directories are found under the directory to be removed. Use<br />

rm –r to remove the directory.<br />

No such directory<br />

The requested directory does not exist or is otherwise inaccessible.<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

rmdir<br />

Chapter 2. Shell command descriptions 533

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!