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

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