On Fri, 2003-06-20 at 12:09, Tom Hosiawa wrote:
> > I know of no way to recover them, but for the future, create an alias
> > rm='cp $1 /tmp'
> > 
> > you just have to set up a cron job or manually remove ,using
> > /usr/bin/rm, all the file in tmp every so often.  We set this up on
> > students computer's.  We don't tell them about it so if they do they
> > learn a lesson, but can recover it if it's truly important.
> > 
> > You could also log to a syslog server so they can't delete them. Well it
> > would just make it more difficult, they'd have to break into both
> > machines.
> > 
> > -Mike
> 
> I like that idea, I've lost couple of file by accident before.
> 
> A follow up question though, is there a way to do that with enforcing
> options like 'rm -i', this way it first asks if you want to delete them
> and then copies the file to /tmp if you answer yes
> 
> Tom

Yeah it's actually saved my butt a time or two.

I'd write a small bash/perl script that does the confirmation, then
alias it to `rm`.
-- 
Michael Gargiullo <[EMAIL PROTECTED]>
Warp Drive Networks


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to