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

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