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