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.

m<br />

Options<br />

Localization<br />

Exit Values<br />

Portability<br />

Tip: If you delete a file, remember that the space is not actually reclaimed until any<br />

processes that have that file open either terminate or close that file. See the fuser<br />

— List process IDs of processes with open files command to find out how to get<br />

more information about what processes are accessing a particular file or directory.<br />

–f Deletes read-only files immediately without asking for confirmation. When<br />

you specify this option and a file does not exist, rm does not display an<br />

error message and does not modify the exit status. If you specify both –f<br />

and –i, rm uses the option that appears last on the command line. If no<br />

files are specified, rm –f will not issue an error.<br />

–i Prompts you for confirmation before deleting each file. If you specify both –f<br />

and –i, rm uses the option that appears last on the command line.<br />

–R Recursively removes the entire directory structure if file is a directory.<br />

–r Is equivalent to –R.<br />

Related Information<br />

cp, mv, rmdir<br />

–v Displays a list of files that were removed.<br />

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

v LANG<br />

v LC_ALL<br />

v LC_COLLATE<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v LC_SYNTAX<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 Failure due to any of the following:<br />

v Inability to remove a file<br />

v Attempt to remove directory without specifying –r or –R<br />

v Inability to find file information when using –r or –R<br />

v Inability to read directory when using –r or –R<br />

2 Failure due to any of the following:<br />

v Incorrect command-line option<br />

v No file was specified<br />

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

532 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!