Commit | Line | Data |
---|---|---|
b5dc1377 CL |
1 | .\" Copyright (c) 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
d1ca8f44 | 3 | .\" |
b5dc1377 | 4 | .\" %sccs.include.redist.man% |
d1ca8f44 | 5 | .\" |
5325ced3 | 6 | .\" @(#)rm.1 6.4 (Berkeley) %G% |
b5dc1377 CL |
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: | |
5325ced3 | 24 | .Tw 8n |
b5dc1377 CL |
25 | .Tp Fl f |
26 | Force each specified directory entry to be removed | |
27 | without prompting for confirmation, regardless of | |
28 | the permissions of the file to which it refers. | |
29 | Suppress diagnostic messages regarding non-existent | |
30 | operands. | |
31 | .Tp Fl i | |
32 | Write a prompt to the standard error output | |
33 | requesting confirmation before removing each existing | |
34 | directory entry, regardless of the permissions | |
35 | of the file to which it refers. | |
36 | .Tp Fl R | |
5325ced3 | 37 | Permit directories to be removed (recursively). |
b5dc1377 CL |
38 | .Pp |
39 | .Tp Fl r | |
40 | Equivalent to | |
5325ced3 | 41 | .Fl R . |
b5dc1377 CL |
42 | .Tp |
43 | .Pp | |
5325ced3 | 44 | The following argument is available: |
b5dc1377 CL |
45 | .Tw Fl |
46 | .Tp Ar file | |
47 | A pathname of a directory entry to be removed. | |
48 | .Tp | |
49 | .Pp | |
50 | The | |
51 | .Nm rm | |
52 | utility exits with one of the following values: | |
53 | .Tw Ds | |
54 | .Tp Li 0 | |
55 | All the named directory entries were removed. | |
56 | .Tp Li >0 | |
57 | An error occurred. | |
58 | .Tp | |
b5dc1377 | 59 | .Sh SEE ALSO |
5325ced3 | 60 | .Xr rmdir 1 |
b5dc1377 CL |
61 | .Sh STANDARDS |
62 | The | |
63 | .Nm rm | |
64 | function is expected to be POSIX 1003.2 compatible. |