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.4 (Berkeley) 07/24/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.Tw 8n 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 37Permit directories to be removed (recursively). 38.Pp 39.Tp Fl r 40Equivalent to 41.Fl R . 42.Tp 43.Pp 44The following argument is available: 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 59.Sh SEE ALSO 60.Xr rmdir 1 61.Sh STANDARDS 62The 63.Nm rm 64function is expected to be POSIX 1003.2 compatible. 65