[Discuss] Accidental rm -rf (was Cloud-backup solutions for Linux?)

Derek Martin invalid at pizzashack.org
Wed Sep 30 16:14:40 EDT 2015


On Sat, Sep 26, 2015 at 01:44:48AM +0000, Edward Ned Harvey (blu) wrote:
> Heheh, what I do is this:
> 
> ls -ld /foo/bar/*
> 
> Did I see it display precisely the things I want to destroy? If so,
> hit the up-key and replace "ls -ld" with "rm -rf"

Exactly.  Though, I'd be more inclined to use ls -lR or some
incantation with find, unless I knew exactly what was in that tree...

You should always take advantage of any opportunity to
inspect what it is you're going to do, before you do it, any time the
results are potentially destructive.  Even if you got it right, you
might find there's something that you really didn't want deleted...

-- 
Derek D. Martin    http://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.




More information about the Discuss mailing list