Re: [Hampshire] error competition

Αρχική Σελίδα

Reply to this message
Συντάκτης: Daniel Llewellyn
Ημερομηνία:  
Προς: Hampshire LUG Discussion List
Υ/ο: James Courtier-Dutton
Αντικείμενο: Re: [Hampshire] error competition
how about this one that I have actually performed myself:

rm -rf .*

the scenario was I wanted to delete all folders in a subtree including
folders beginning with a dot (.) to hide them from a normal ls
listing. instead it deleted everything in the subtree .. AND
everything in the supertree (../ then ../../ then ../../../ all the
way up to / and then following back down again into every subdirectory
of /)


--
Regards,
    The Honeymonster aka Daniel Llewellyn