home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: rlogin Chapter 2
UNIX Commands
Next: Reference: rmdel
 

rm



rm

 [

options

] 

files

Delete one or more files . To remove a file, you must have write permission in the directory that contains the file, but you need not have permission on the file itself. If you do not have write permission on the file, you will be prompted ( y or n ) to override.

Options

-f

Remove write-protected files without prompting.

-i

Prompt for y (remove the file) or n (do not remove the file).

-r

If file is a directory, remove the entire directory and all its contents, including subdirectories. Be forewarned: use of this option can be dangerous.

--

Mark the end of options ( rm still accepts - , the old form). Use this when you need to supply a filename beginning with - .


Previous: Reference: rlogin UNIX in a Nutshell: System V Edition Next: Reference: rmdel
Reference: rlogin Book Index Reference: rmdel

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System