Beware of errant spaces

 | Computers and stuff | 0 Comments

Beware of inadvertent spaces in directory names when using rm -rf, it can kill you without asking first.

I figured I would cleanup some junk piling up in several directories of my laptop: /tmp, /var, etc.

I accidentally hit the space-bar, causing this to appear at the prompt:

$ rm -rf /var /spool/...

And just when that little teenie space caught my attention, it was already too late. There was nothing else I could do but cry. Just for fun (and also hoping for a miracle) I rebooted my laptop, but it choked anyway.

Better be more careful next time.

Leave a comment

Recent Entries

Stupid light-pole
Damn. I bashed in the left side of my car against that stupid light-pole while backing out of the ... »
Enjoy life
The man standing next to me was wearing a fancy suit and carrying a leather briefcase in his right ... »
Gale-force winds
"The true (golf) pilgrim wanders off to the outlying, the more humble and obscure courses. For it is on ... »
Secret powers
The front nine was quite a display of supernaturally and (almost) perfectly consistent golfing gusto: Par, par, par, par, ... »
No more winter greens
The cool, windy and grayish afternoon calls me onward. It's drizzling on my windshield but I do not care. ... »