| 1 | .\" Copyright (c) 1990 The Regents of the University of California. |
| 2 | .\" All rights reserved. |
| 3 | .\" |
| 4 | .\" %sccs.include.redist.man% |
| 5 | .\" |
| 6 | .\" @(#)rm.1 6.3 (Berkeley) %G% |
| 7 | .\" |
| 8 | .Dd |
| 9 | .Dt RM 1 |
| 10 | .Os BSD 4.4 |
| 11 | .Sh NAME |
| 12 | .Nm rm |
| 13 | .Nd remove directory entries |
| 14 | .Sh SYNOPSIS |
| 15 | .Nm rm |
| 16 | .Op Fl f Li \&| Fl i |
| 17 | .Op Fl Rr |
| 18 | .Ar file ... |
| 19 | .Sh DESCRIPTION |
| 20 | The rm utility removes the directory entry specified by each |
| 21 | file argument. |
| 22 | .Pp |
| 23 | The following options are available: |
| 24 | .Tp Fl f |
| 25 | Force each specified directory entry to be removed |
| 26 | without prompting for confirmation, regardless of |
| 27 | the permissions of the file to which it refers. |
| 28 | Suppress diagnostic messages regarding non-existent |
| 29 | operands. |
| 30 | .Tp Fl i |
| 31 | Write a prompt to the standard error output |
| 32 | requesting confirmation before removing each existing |
| 33 | directory entry, regardless of the permissions |
| 34 | of the file to which it refers. |
| 35 | .Tp Fl R |
| 36 | Permit directories to be removed. |
| 37 | .Pp |
| 38 | .Tp Fl r |
| 39 | Equivalent to |
| 40 | .FL R. |
| 41 | .Tp |
| 42 | .Pp |
| 43 | The following operands are available: |
| 44 | .Tw Fl |
| 45 | .Tp Ar file |
| 46 | A pathname of a directory entry to be removed. |
| 47 | .Tp |
| 48 | .Pp |
| 49 | The |
| 50 | .Nm rm |
| 51 | utility exits with one of the following values: |
| 52 | .Tw Ds |
| 53 | .Tp Li 0 |
| 54 | All the named directory entries were removed. |
| 55 | .Tp Li >0 |
| 56 | An error occurred. |
| 57 | .Tp |
| 58 | .Sh ENVIRONMENT |
| 59 | .Sh SEE ALSO |
| 60 | .Sh STANDARDS |
| 61 | The |
| 62 | .Nm rm |
| 63 | function is expected to be POSIX 1003.2 compatible. |