On 2017-03-17 00:26, Greg Freemyer wrote:
On Thu, Mar 16, 2017 at 7:20 PM, Bernhard Voelker
wrote: On 03/16/2017 10:31 PM, Greg Freemyer wrote:
Be especially sure not to create to files "-rf" and "/"
I've never tried it, but I assume "rm *" in that folder could do "rm -rf /"
Not too scary - GNU rm has a failsafe for the '/' argument (including links and unusual ".." namings to it):
$ rm -rf / rm: it is dangerous to operate recursively on ‘/’ rm: use --no-preserve-root to override this failsafe
... as long as you don't create a file named "--no-preserve-root". ;-) At least you'll get this failsafe behavior with rm(1) from GNU coreutils, so I can't tell for other flavors (HP-UX, Solaris, ...).
Thanks Berny,
That is one command I won't be testing out any time soon.
I have been scared of that command all my life. Well, all my life soon after I found Linux, that is :-) -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))