Hello, On Fri, 17 Mar 2017, 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". ;-)
Ooooch mennooo! That takes out all the fun! Hasn't it been the lore, that if you've not once accidentally run 'rm -rf /' or at least 'rm -rf ~', you're no UNIX/Linux guy? Or at least: you deleted some files via a tyop, and learned from it. Either by coping with the loss (you had backups, din'tya?) or the hard way using debugfs. Well, I hope that after many years, that I've learned to enter a Ctrl-c unless I'm _REALLY_ sure (triple-, quadruple-checked) the commandline I've just entered.. 'dd if=/dev/zero of=/dev/sdNOSUCHDEV' anyone? where NOSUCHDEV actually is something like 'c' or such ;) -dnh --
Wow, and everyone swears [Python]'s better than Perl. Wait, you don't say it's worse, never mind. -- Satya The axis on which Perl sits is rotated 90 degrees with respect to the rest of language-goodness-space. -- Garrett Wollman
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org