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