Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month at the Massachusetts Institute of Technology, in Building E51.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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.




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org