source: trunk/athena/bin/delete/man1/delete.1 @ 12350

Revision 12350, 4.2 KB checked in by ghudson, 26 years ago (diff)
Some RCS ID cleanup: delete $Log$ and replace other RCS keywords with $Id$.
Line 
1.\"     $Id: delete.1,v 1.8 1999-01-22 23:09:12 ghudson Exp $
2.\"
3.\" Copyright 1989 by the Massachusetts Institute of Technology.  All
4.\" rights reserved.  The file /usr/include/mit-copyright.h specifies
5.\" the terms and conditions for redistribution.
6.\"
7.\"
8.TH DELETE 1 "January 26, 1988" "MIT Project Athena"
9.ds ]W MIT Project Athena
10.SH NAME
11delete \- a recoverable file-deletion utility
12.SH SYNOPSIS
13.B delete
14[
15.B \-r
16] [
17.B \-i
18] [
19.B \-f
20] [
21.B \-n
22] [
23.B \-v
24] [
25.B \-e
26] [
27.B \-F
28] [
29.B \-D
30] [
31.B \-\|\-
32] filename ...
33.PP
34.SH DESCRIPTION
35.I Delete
36marks files and directories for later permanent removal (by renaming
37them with a prefix of \fI.#\fR).  Files accidentally marked for deletion
38can be recovered using
39.I undelete(1).
40Marked files are periodically
41removed automatically by the system; they can also be removed on demand
42(see \fIpurge\fR(1) and \fIexpunge\fR(1) for details).
43Users can list files which have been marked for
44removal but have not yet been removed using \fIlsdel\fR(1).
45.PP
46If the user does not have write permission to a file, its permissions
47are printed and the user is asked whether the file should be removed.
48If the first character of the response line is \fIy\fR the file is
49removed, otherwise it remains.
50.PP
51Users wishing to retain the user interface of \fIrm\fR(1)
52and \fIrmdir\fR(1)
53while still being able to recover accidentally removed files can do so
54by aliasing
55.I rm
56to
57.I delete \-F \-e
58and
59.I rmdir
60to
61.I delete \-D \-e
62(see below).
63.SH OPTIONS
64.I Delete
65accepts the following command-line options:
66.TP
67.B \-r
68If a designated filename is a non-empty directory,
69.I delete
70will signal an error unless the
71.B \-r
72option is specified.  In that case,
73.I delete
74recursively deletes the directory's entire contents and the directory
75itself.  If the
76.B \-F
77option is specified (see below),
78.I delete
79will signal an error even if the directory is empty.
80.TP
81.B \-i
82Causes
83.I delete
84to ask whether to delete each file, and, in recursive
85mode, whether to examine each directory.
86.TP
87.B \-f
88Prevents
89.I delete
90from asking any questions and from reporting any errors.
91.TP
92.B \-n
93No file removals are performed.  Instead,
94.I delete
95prints to the standard output the files that it would remove were the
96.B \-n
97option not specified.
98.TP
99.B \-v
100Causes
101.I delete
102to report each file as it is deleted.
103.TP
104.B \-e
105Causes
106.I delete
107to emulate \fIrm\fR(1) and \fIrmdir\fR(1) as much as it can (i.e.
108error and status messages and other peculiarities of \fIrm\fR(1) and
109\fIrmdir\fI(1)).
110.TP
111.B \-F
112Causes
113.I delete
114to emulate
115.I rm
116by preventing it from removing even empty directories when the
117.B \-r
118option is not specified.
119.TP
120.B \-D
121Causes
122.I delete
123to emulate
124.I rmdir
125by preventing it from removing anything but empty directories.
126.TP
127.B \-\|\-
128Two dashes indicate that all the arguments following it are to be treated as
129file names, even if they start with a dash.
130.SH "SEE ALSO"
131undelete(1), purge(1), expunge(1), lsdel(1), rm(1), rmdir(1)
132.SH BUGS
133.I Delete
134may change the access and modification times on a file when it is
135deleted.  This is necessary in order to guarantee that
136.I expunge
137will work correctly in
138.I AFS
139filesystems.  You might say that this is a bug in
140.IR AFS ,
141rather than a bug in
142.IR delete .
143.SH AUTHOR
144Jonathan I. Kamens (MIT-Project Athena)
145.SH COPYRIGHT
146Copyright (c) 1989 by the Massachusetts Institute of Technology.
147.PP
148All rights reserved.
149.PP
150Permission to use, copy, modify, and distribute this software and its
151documentation for any purpose and without fee is hereby granted,
152provided that the above copyright notice appear in all copies and that
153both that copyright notice and this permission notice appear in
154supporting documentation, and that the name of the Massachusetts
155Institute of Technology (M.I.T.) not be used in advertising or publicity
156pertaining to distribution of the software without specific, written
157prior permission.
158.PP
159M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
160ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
161M.I.T. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
162ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
163WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
164ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
165SOFTWARE.
166
167
Note: See TracBrowser for help on using the repository browser.