3 ms·
>Your 'never do this' line Would also erase everything else on the box so you might not know for a few seconds, but then the database errors start and the lib
by jethro_tell 12y ago
>Your 'never do this' line
Would also erase everything else on the box so you might not know for a few seconds, but then the database errors start and the lib and pid files start disappearing and now your the king of a mountain of shit. It won't take till next reboot to notice.
If you ever get a chance, rm -rf / a box before you throw it out and just play around with it for a couple minutes while it eats itself.
You can spare your self most errors like that with tab complete, the built in sanity checker. I tab complete everything since I'm dyslexic, and it saves me a shit ton of time cause I'm never far from the error when I notice it.
- dbaupp 12y agoYou have the same fun in an emulator (even http://bellard.org/jslinux/ http://bellard.org/jslinux/ is somewhat good enough).
- jsmthrowaway 12y ago> Would also erase everything else on the box so you might not know for a few seconds, but then the database errors start and the lib and pid files start disappearing and now your the king of a mountain of shit. It won't take till next reboot to notice. Yes, it will, because the original post didn't include -r. So it's only deleting things that match the glob in the root directory. On many systems, that is nothing.
- eurleif 12y agoEven with -r, /*.* only matches files and directories in / that have a period in their name. So it would skip over /usr, /home, etc.
- jsmthrowaway 12y agoThat's what "match the glob" means.
- eurleif 12y agoMy point was that the lack of -r doesn't really change anything; even with -r, it would still only delete initrd.img and similar, which would take until the next reboot to notice.