02.05.2013 Views

Description - Mks.com

Description - Mks.com

Description - Mks.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NAME<br />

rm — remove files<br />

SYNOPSIS<br />

rm [-fiRrv] [-d|s] file ...<br />

DESCRIPTION<br />

rm -- Command, KornShell Built-in<br />

rm removes each specified file argument (provided that it is a valid path name). If you specify<br />

either . or .. as the final <strong>com</strong>ponent of the path name for a file, rm displays an error message,<br />

and moves onto the next file. If you specify a file you do not have write permission for, rm asks you<br />

for confirmation. Type the yes expression defined in LC_MESSAGES (the English expression is<br />

typically y or yes) if you really want it deleted.<br />

Options<br />

-d<br />

-f<br />

-i<br />

-R<br />

delays the removal of the specified files until the system is rebooted. This option and the -s<br />

option are mutually exclusive.<br />

This option relies upon the underlying operating system's capability to perform the action at<br />

reboot time.<br />

deletes read-only files immediately, without asking for confirmation. When you specify this<br />

option and a file does not exist, rm does not display an error message and does not modify<br />

the exit status. If you specify both -f and -i, rm uses the option that appears last on the<br />

<strong>com</strong>mand line.<br />

prompts for confirmation (from standard input) before deleting each file or confirmation<br />

before entering a subdirectory if either the -r or -R option is specified. If you specify both<br />

-f and -i, rm uses the option that appears last on the <strong>com</strong>mand line.<br />

recursively removes the entire directory structure if file is a directory.<br />

448 of 457

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

Saved successfully!

Ooh no, something went wrong!