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

Revision 1809, 3.5 KB checked in by jik, 35 years ago (diff)
added copyright information
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.3 1989-03-27 11:32:32 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 are interpreted correctly by
47.I undelete.
48It is possible to pass wildcards to the program without the wildcards
49being intercepted by the shell by setting
50.I noglob
51(in \fIcsh\fR) or by quoting the wildcards.  To delete a file that
52actually has a wildcard in its name, you must precede the quoted
53wildcard with a quoted backslash.
54.PP
55If no files are specified on the command line,
56.I undelete
57goes into interactive mode.  In interactive mode, the user is prompted
58to enter files to be restored, one file per line.  Typing a carriage
59return on an empty prompt line exits the program.
60.PP
61Wildcards and quoting backslashes can be entered directly at the
62prompt without any shell interference (which is the
63main reason there is an interactive mode).
64.SH OPTIONS
65.I Undelete
66accepts the following command-line options:
67.TP
68.B \-r
69If a specified file is a directory, the directory and all of its
70children are restored recursively.  If a specified file is a symbolic
71link to a directory, then the directory and its contents will be
72restored, not the symbolic link.
73.TP
74.B \-i
75The user is prompted for confirmation before each file or directory is
76restored.  This is not the same as the interactive file name entry
77mode which is automatically activated when no files are specified on
78the command line.
79.TP
80.B \-f
81Prevents
82.I undelete
83from reporting errors.  Further, if an intact (undeleted) version of a
84file which is requested for undeletion exists, then
85.I undelete
86will not prompt for confirmation before overwriting the undeleted file
87with the recovered one.
88.TP
89.B \-v
90Causes
91.I undelete
92to report each file as it is restored.  Also, causes an introductory
93message to be printed when entering interactive mode.
94.TP
95.B \-n
96No file recoveries are performed.  Instead,
97.I undelete
98prints to the standard output the files that it would recover were the
99.B \-n
100option not specified.
101.TP
102.B \-R
103Prevents
104.I undelete
105from restoring the contents of directories in any case.
106.TP
107.B \-\|\-
108Two dashes indicate that all arguments following it are to be treated as file
109names, even if they start with a dash.
110.SH "SEE ALSO"
111delete(1), purge(1), expunge(1), lsdel(1), rm(1), rmdir(1)
112.SH AUTHOR
113Jonathan I. Kamens (MIT-Project Athena)
114.SH RESTRICTIONS
115Copyright (c) 1989 by the Massachusetts Institute of Technology.  All
116rights reserved.
117.IR Delete (1)
118specifies the terms and conditions for redistribution.
Note: See TracBrowser for help on using the repository browser.