source: trunk/athena/bin/delete/man1/undelete.1 @ 2086

Revision 2086, 3.6 KB checked in by jik, 35 years ago (diff)
Modified to point out that [] notation in filenames is also understood.
Line 
1.\"     $Source: /afs/dev.mit.edu/source/repository/athena/bin/delete/man1/undelete.1,v $
2.\"     $Author: jik $
3.\"     $Header: /afs/dev.mit.edu/source/repository/athena/bin/delete/man1/undelete.1,v 1.4 1989-09-14 03:42:14 jik Exp $
4.\" Copyright 1989 by the Massachusetts Institute of Technology.  All
5.\" rights reserved.  The file /usr/include/mit-copyright.h specifies
6.\" the terms and conditions for redistribution.
7.\"
8.\"
9.TH UNDELETE 1 "January 26, 1988" "MIT Project Athena"
10.ds ]W MIT Project Athena
11.SH NAME
12undelete \- recover files removed by delete
13.SH SYNOPSIS
14.B undelete
15[
16.B \-r
17] [
18.B \-i
19] [
20.B \-f
21] [
22.B \-v
23] [
24.B \-n
25] [
26.B \-R
27] [
28.B \-\|\-
29] [ filename [ ... ]]
30.PP
31.DESCRIPTION
32.I Undelete
33recovers files and directories that have been marked for permanent removal by
34\fIdelete\fR(1), but have not
35yet been removed.
36.PP
37Filenames passed to
38.I undelete
39can be directories or deleted files.
40If a directory that is not deleted is passed to
41.I undelete,
42then the deleted files or directories in it will be restored; if the
43recursive option is specified, then all deleted files or directories
44in any of its children will be restored as well.
45.PP
46The shell wildcards \fI*\fR and \fI?\fR, as well as shell brace
47notation using \fI[\fR and \fI]\fR, are interpreted correctly by
48.I undelete.
49It is possible to pass wildcards to the program without the wildcards
50being intercepted by the shell by setting
51.I noglob
52(in \fIcsh\fR) or by quoting the wildcards.  To delete a file that
53actually has a wildcard in its name, you must precede the quoted
54wildcard with a quoted backslash.
55.PP
56If no files are specified on the command line,
57.I undelete
58goes into interactive mode.  In interactive mode, the user is prompted
59to enter files to be restored, one file per line.  Typing a carriage
60return on an empty prompt line exits the program.
61.PP
62Wildcards and quoting backslashes can be entered directly at the
63prompt without any shell interference (which is the
64main reason there is an interactive mode).
65.SH OPTIONS
66.I Undelete
67accepts the following command-line options:
68.TP
69.B \-r
70If a specified file is a directory, the directory and all of its
71children are restored recursively.  If a specified file is a symbolic
72link to a directory, then the directory and its contents will be
73restored, not the symbolic link.
74.TP
75.B \-i
76The user is prompted for confirmation before each file or directory is
77restored.  This is not the same as the interactive file name entry
78mode which is automatically activated when no files are specified on
79the command line.
80.TP
81.B \-f
82Prevents
83.I undelete
84from reporting errors.  Further, if an intact (undeleted) version of a
85file which is requested for undeletion exists, then
86.I undelete
87will not prompt for confirmation before overwriting the undeleted file
88with the recovered one.
89.TP
90.B \-v
91Causes
92.I undelete
93to report each file as it is restored.  Also, causes an introductory
94message to be printed when entering interactive mode.
95.TP
96.B \-n
97No file recoveries are performed.  Instead,
98.I undelete
99prints to the standard output the files that it would recover were the
100.B \-n
101option not specified.
102.TP
103.B \-R
104Prevents
105.I undelete
106from restoring the contents of directories in any case.
107.TP
108.B \-\|\-
109Two dashes indicate that all arguments following it are to be treated as file
110names, even if they start with a dash.
111.SH "SEE ALSO"
112delete(1), purge(1), expunge(1), lsdel(1), rm(1), rmdir(1)
113.SH AUTHOR
114Jonathan I. Kamens (MIT-Project Athena)
115.SH RESTRICTIONS
116Copyright (c) 1989 by the Massachusetts Institute of Technology.  All
117rights reserved.
118.IR Delete (1)
119specifies the terms and conditions for redistribution.
Note: See TracBrowser for help on using the repository browser.