1 | .\" $Id: expunge.1,v 1.10 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 EXPUNGE 1 "January 27, 1988" "MIT Project Athena" |
---|
9 | .ds ]W MIT Project Athena |
---|
10 | .SH NAME |
---|
11 | expunge, purge \- permanent removal of deleted files |
---|
12 | .SH SYNOPSIS |
---|
13 | .B expunge |
---|
14 | [ |
---|
15 | .B \-r |
---|
16 | ] [ |
---|
17 | .B \-i |
---|
18 | ] [ |
---|
19 | .B \-f |
---|
20 | ] [ |
---|
21 | .B \-t \fIn\fR |
---|
22 | ] [ |
---|
23 | .B \-n |
---|
24 | ] [ |
---|
25 | .B \-v |
---|
26 | ] [ |
---|
27 | .B \-l |
---|
28 | ] [ |
---|
29 | .B \-s |
---|
30 | ] [ |
---|
31 | .B \-m |
---|
32 | ] [ |
---|
33 | .B \-y |
---|
34 | ] [ |
---|
35 | .B \-\|\- |
---|
36 | ] [ filename [ ... ]] |
---|
37 | .PP |
---|
38 | .B purge |
---|
39 | .PP |
---|
40 | .SH DESCRIPTION |
---|
41 | .I Expunge |
---|
42 | and |
---|
43 | .I purge |
---|
44 | permanently remove files which have been marked for deletion using |
---|
45 | \fIdelete\fR(1). Files removed with \fIexpunge\fR or \fIpurge\fR |
---|
46 | cannot be recovered, and care should therefore be exercised in the |
---|
47 | use of these utilities. |
---|
48 | .PP |
---|
49 | .I Purge |
---|
50 | is a simple utility which takes no command-line arguments. When it is |
---|
51 | executed, it searches through the user's entire home directory and |
---|
52 | finds all files that have been marked for deletion. It then displays |
---|
53 | a list of the files where are to be removed and prompts for |
---|
54 | confirmation. A response from the user starting with the letter |
---|
55 | \fIy\fR will cause the files to be permanently expunged. |
---|
56 | .PP |
---|
57 | Because |
---|
58 | .I purge |
---|
59 | searches through the user's entire home directory, it can take quite a |
---|
60 | while to complete its search. This is normal. |
---|
61 | .PP |
---|
62 | The filenames passed to |
---|
63 | .I expunge |
---|
64 | on the command-line can be directories (deleted or not deleted) or |
---|
65 | deleted files. Deleted files or directories are always completely |
---|
66 | expunged, while the treatment of non-deleted directories depends on |
---|
67 | the |
---|
68 | .BR \-r |
---|
69 | command-line option (see below). If no command-line filenames are |
---|
70 | specified, |
---|
71 | .I expunge |
---|
72 | defaults to the current working directory. |
---|
73 | .PP |
---|
74 | For information about wildcard use with \fIexpunge\fR, please see |
---|
75 | \fIundelete\fR(1). |
---|
76 | .PP |
---|
77 | .SH OPTIONS |
---|
78 | .I Expunge |
---|
79 | accepts the following command-line options: |
---|
80 | .TP |
---|
81 | .B \-r |
---|
82 | When a non-deleted directory is passed to \fIexpunge\fR, the |
---|
83 | .BR \-r |
---|
84 | option causes the directory to be searced recursively for deleted |
---|
85 | files. If the recursive option is \fInot\fR specified, only the |
---|
86 | direct children of the non-deleted directory are examined. A |
---|
87 | recursive search of a large directory can take quite a while. |
---|
88 | .TP |
---|
89 | .B \-i |
---|
90 | The user is prompted for confirmation with the name of the file and |
---|
91 | its size in kilobytes before each file or directory is |
---|
92 | removed. |
---|
93 | .TP |
---|
94 | .B \-f |
---|
95 | Used in conjunction with the |
---|
96 | .BR \-l |
---|
97 | option, this option prevents |
---|
98 | .I expunge |
---|
99 | from prompting for confirmation after listing all the files that are |
---|
100 | to be deleted. Furthermore, it prevents the printing of error |
---|
101 | messages. |
---|
102 | .TP |
---|
103 | .B \-t\fIn\fR |
---|
104 | Specifies the minimum age (in days) of files to be expunged, measured |
---|
105 | as the length of time since the file was |
---|
106 | .IR delete d. |
---|
107 | .TP |
---|
108 | .B \-n |
---|
109 | No file expunges are performed. Instead, |
---|
110 | .I expunge |
---|
111 | prints to the standard output the files that it would expunge were the |
---|
112 | .BR \-n |
---|
113 | option not specified. |
---|
114 | .TP |
---|
115 | .B \-v |
---|
116 | Causes |
---|
117 | .I expunge |
---|
118 | to report each file as it is expunged, as well as the size of the file |
---|
119 | and a running total of the number of kilobytes expunged. |
---|
120 | .TP |
---|
121 | .B \-l |
---|
122 | Causes |
---|
123 | .I expunge |
---|
124 | to list all found files before expunging them, similar to the actions |
---|
125 | of |
---|
126 | .I purge. |
---|
127 | .TP |
---|
128 | .B \-s |
---|
129 | Symbolic links are followed when searching for deleted files. |
---|
130 | .TP |
---|
131 | .B \-m |
---|
132 | Mount points are followed when searching for deleted files. |
---|
133 | .TP |
---|
134 | .B \-y |
---|
135 | The total number of kilobytes expunged is printed after |
---|
136 | .I expunge |
---|
137 | is finished removing files. |
---|
138 | .TP |
---|
139 | .B \-\|\- |
---|
140 | Two dashes indicate that all arguments following it are to be treated |
---|
141 | as file names, even if they start with a dash. |
---|
142 | .SH "SEE ALSO" |
---|
143 | delete(1), undelete(1), lsdel(1), rm(1), rmdir(1) |
---|
144 | .SH AUTHOR |
---|
145 | Jonathan I. Kamens (MIT-Project Athena) |
---|
146 | .SH RESTRICTIONS |
---|
147 | Copyright (c) 1989 by the Massachusetts Institute of Technology. All |
---|
148 | rights reserved. |
---|
149 | .IR Delete (1) |
---|
150 | specifies the terms and conditions for redistribution. |
---|