UNRM
Section: User Commands (1)
Updated: LOCAL
Index
Return to Main Contents
NAME
unrm, rm - remove files and bring them back
SYNOPSIS
unrm
[
-f
] file ...
rm
file ...
DESCRIPTION
Rm
is a local replacement for the standard
rm(1)
command. Prior to removing a file it ferrets away a copy of it in
the directory
/tmp/rm/login_id,
creating each component along the way as necessary.
The standard ``-r,'' ``-f,'' and ``-i'' options may be specified,
but they are ignored.
Files that have been deleted with this version of
rm
can than be retrieved with the
unrm
command.
Unrm
checks to see that you are indeed the owner of a file before you
can copy it. It will not overwrite a file of the same name in the
current directory, unless the ``-f'' flag is specified, which
causes the file to be replaced regardless.
If these programs are available, the system administror will probably want
to add a line like the following to /usr/lib/crontab:
-
40 4 * * * find /tmp -mtime +2 -exec rm -f {} ;
This removes all files from temp that haven't been touched within
two days.
BUGS
Strange things can happen if you try to specify something other than
a regular file.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- BUGS
-
This document was created by
man2html,
using the manual pages.
Time: 06:22:29 GMT, December 12, 2024