xref: /original-bsd/bin/rm/rm.1 (revision 0a33e010)
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) 06/11/90
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
20The rm utility removes the directory entry specified by each
21file argument.
22.Pp
23The following options are available:
24.Tp Fl f
25Force each specified directory entry to be removed
26without prompting for confirmation, regardless of
27the permissions of the file to which it refers.
28Suppress diagnostic messages regarding non-existent
29operands.
30.Tp Fl i
31Write a prompt to the standard error output
32requesting confirmation before removing each existing
33directory entry, regardless of the permissions
34of the file to which it refers.
35.Tp Fl R
36Permit directories to be removed.
37.Pp
38.Tp Fl r
39Equivalent to
40.FL R.
41.Tp
42.Pp
43The following operands are available:
44.Tw Fl
45.Tp Ar file
46A pathname of a directory entry to be removed.
47.Tp
48.Pp
49The
50.Nm rm
51utility exits with one of the following values:
52.Tw Ds
53.Tp Li 0
54All the named directory entries were removed.
55.Tp Li >0
56An error occurred.
57.Tp
58.Sh ENVIRONMENT
59.Sh SEE ALSO
60.Sh STANDARDS
61The
62.Nm rm
63function is expected to be POSIX 1003.2 compatible.
64