xref: /csrg-svn/bin/rm/rm.1 (revision 44957)
143084Scael.\" Copyright (c) 1990 The Regents of the University of California.
243084Scael.\" All rights reserved.
319282Smckusick.\"
443084Scael.\" %sccs.include.redist.man%
519282Smckusick.\"
6*44957Scael.\"     @(#)rm.1	6.4 (Berkeley) 07/24/90
743084Scael.\"
843084Scael.Dd
943084Scael.Dt RM 1
1043084Scael.Os BSD 4.4
1143084Scael.Sh NAME
1243084Scael.Nm rm
1343084Scael.Nd remove directory entries
1443084Scael.Sh SYNOPSIS
1543084Scael.Nm rm
1643084Scael.Op Fl f Li \&| Fl i
1743084Scael.Op Fl Rr
1843084Scael.Ar file ...
1943084Scael.Sh DESCRIPTION
2043084ScaelThe rm utility removes the directory entry specified by each
2143084Scaelfile argument.
2243084Scael.Pp
2343084ScaelThe following options are available:
24*44957Scael.Tw 8n
2543084Scael.Tp Fl f
2643084ScaelForce each specified directory entry to be removed
2743084Scaelwithout prompting for confirmation, regardless of
2843084Scaelthe permissions of the file to which it refers.
2943084ScaelSuppress diagnostic messages regarding non-existent
3043084Scaeloperands.
3143084Scael.Tp Fl i
3243084ScaelWrite a prompt to the standard error output
3343084Scaelrequesting confirmation before removing each existing
3443084Scaeldirectory entry, regardless of the permissions
3543084Scaelof the file to which it refers.
3643084Scael.Tp Fl R
37*44957ScaelPermit directories to be removed (recursively).
3843084Scael.Pp
3943084Scael.Tp Fl r
4043084ScaelEquivalent to
41*44957Scael.Fl R .
4243084Scael.Tp
4343084Scael.Pp
44*44957ScaelThe following argument is available:
4543084Scael.Tw Fl
4643084Scael.Tp Ar file
4743084ScaelA pathname of a directory entry to be removed.
4843084Scael.Tp
4943084Scael.Pp
5043084ScaelThe
5143084Scael.Nm rm
5243084Scaelutility exits with one of the following values:
5343084Scael.Tw Ds
5443084Scael.Tp Li 0
5543084ScaelAll the named directory entries were removed.
5643084Scael.Tp Li >0
5743084ScaelAn error occurred.
5843084Scael.Tp
5943084Scael.Sh SEE ALSO
60*44957Scael.Xr rmdir 1
6143084Scael.Sh STANDARDS
6243084ScaelThe
6343084Scael.Nm rm
6443084Scaelfunction is expected to be POSIX 1003.2 compatible.
65