Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: SERE_DOC
rm -rf / home/zeugma/trash/*

The above is double plus ungood.

48 posted on 03/23/2014 12:31:23 PM PDT by zeugma (Is it evil of me to teach my bird to say "here kitty, kitty"?)
[ Post Reply | Private Reply | To 34 | View Replies ]


To: zeugma; ShadowAce; rdb3
rm -rf / home/zeugma/trash/*

There's a whole section devoted to such errors due to inadvertent whitespace creeping into commands in The Unix Haters Handbook. One that's caught me far too often than I care to admit is hitting a space before the dot:

rm * .~
The handbook states that such botches are "rites of passage" in the Unix world. In a sense that's true because I've become an absolute fanatic about backups since my last real disaster of that sort in 1993. Sure the GUIs help protect against such things, but I'm just quicker when working at the shell.
Shadow Ace and rdb3: I really should've pinged both of you at the outset of this thread. So this makes up for lost time. :)
50 posted on 03/23/2014 3:42:08 PM PDT by re_nortex (DP - that's what I like about Texas)
[ Post Reply | Private Reply | To 48 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson