MPE/iX Shell and Utilities Reference Manual, Vol 2
rm(1) MPE/iX Shell and Utilities rm(1)
NAME
rm — remove files
SYNOPSIS
rm [–fiRr] file ...
DESCRIPTION
Note: The MPE/iX implementation of this utility does not function exactly as this man page
describes. For details, see the MPE/iX NOTES section at the end of this man page.
rm removes each specified file argument (provided that it is a valid path name). If you specify
either . or .. as the final component of the path name for a file, rm displays an error message,
and moves onto the next file. If you specify a file for which you do not have write permission,
rm asks you for confirmation. Type the yes expression defined in
LC_MESSAGES
(the
English expression is typically y or yes) if you really want it deleted.
Options
rm accepts the following options:
–f deletes read-only files immediately, without asking for confirmation. When you
specify this option and a file does not exist, rm does not display an error message and
does not modify the exit status. If you specify both –f and –i, rm uses the option
that appears last on the command line.
–i prompts for confirmation before deleting each file. If you specify both –f and –i,
rm uses the option that appears last on the command line.
–R recursively removes the entire directory structure if file is a directory.
–r is equivalent to –R.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 Failure due to any of the following:
— inability to remove a file
— tried to remove directory without specifying –r or –R
— inability to find file information when using –r or –R
— inability to read directory when using –r or –R
2 Failure due to any of the following:
— invalid command line option
—nofiles specified
1-494 Commands and Utilities