On 2/22/2010 01:56 PM, Eric Blake wrote:
> According to SANTHOSH on 2/22/2010 12:06 AM:
>> I am Useing Red Hat Enterprise Linux AS release 4. SUDANLY  I USED \rm
>> -r  command in my pc i was losed my imartent files
>> sir any chance to retrev that file  Please Help me
>
> Sorry, but you've just learned a life lesson.  Hope you have good backups.

Has anyone already thought about an option to let rm exit
on the first failure?

Okay, as root, many files would be lost nonetheless. But at some point,
the kernel would refuse the deletion of a file or directory - who has
not run `rm -rf /` at least in a virtual machine yet ... -, and then
rm could stop.

This would just be an extension and one could alias rm to use that option.
Of course, this doesn't replace a proper backup strategy, but in some
cases, this could save at least a few files.

Just a thought.

Have a nice day,
Benry

Reply via email to