Vote for new Ubuntu Feature
news at pointerstop.ca
Tue Jan 9 14:21:48 UTC 2007
John Dangler wrote:
> On Mon, 2007-01-08 at 15:14 -0400, Derek Broughton wrote:
>> Brian Fahrlander wrote:
>> > I suggest that the next time you have a typo in a command line,
>> > wiping out large sections of files, or changing one-too-many
>> > permissions, you'll come to see the light, too.
>> Like the time I did:
>> # sudo rm -rf /etc /foo
>> (not intending the " " before the second slash...)
>> Sudo didn't stop me from doing that, because I thought I'd typed what I
>> meant, but it did give me one last chance...
> Now, that would be a painful discovery... especially since I remember
> doing this once on a SYSV Unix machine (circa 1982) , and didn't
> discover what I had done until /etc/sh got removed, and I was logged
> out, never to be able to log back in...
LOL (OK, it's only funny because _you_ did it :-) ). Iirc, I actually used
the -v option, and saw what was happening fairly quickly - or else it just
took much longer than expected. So I killed it before doing anything
_that_ serious, and I happened to have another version of the distro I was
using at the time on another partition, so was able to quickly copy files
over from there without losing _too_ much.
These days, with a live CD always at hand, recovery from many of these
errors is a lot simpler - but it's still always better to try not to do
them at all :-)
More information about the ubuntu-users