In all seriousness, what if it's a machine that no one should ever really be running commands on? This could be an effective, albeit naive, way to discourage undesirables in the system.
Suicide Linux
71–80 of 135 posts
Re: Suicide Linux
#72Re: Suicide Linux
#73Earlier quoted context omitted.
Don't miss his work at SCP wiki, either. http://www.scp-wiki.net/qntm-s-author-page
Visiting that page on mobile asked for permission to record audio and take photos...
Re: Suicide Linux
#74On Illumos rm -rf / does nothing. POSIX says that removing / has undefined behavior, so the obviously smart (useful, user-friendly, GOOD) thing to do is to do nothing, as that fits "undefined behavior".
Re: Suicide Linux
#75This reminds me of Vigil, "the eternal morally vigilant programming language" https://github.com/munificent/vigil
Re: Suicide Linux
#76> You know how sometimes if you mistype a filename in Bash, it corrects your spelling and runs the command anyway? What? No, what's that about?
There's the cdspell shopt: "If set, minor errors in the spelling of a directory component in a cd command will be corrected. The errors checked for are transposed characters, a missing character, and a character too many. If a correction is found, the corrected path is printed, and the command proceeds." ( https://www.gnu.org/software/bash/manual/html_node/The-Shopt... )
Re: Suicide Linux
#77Earlier quoted context omitted.
There's the cdspell shopt: "If set, minor errors in the spelling of a directory component in a cd command will be corrected. The errors checked for are transposed characters, a missing character, and a character too many. If a correction is found, the corrected path is printed, and the command proceeds." ( https://www.gnu.org/software/bash/manual/html_node/The-Shopt... )
That's for `cd smoedir` I am not aware of what would do `./smoeexec`
Re: Suicide Linux
#78> You know how sometimes if you mistype a filename in Bash, it corrects your spelling and runs the command anyway? What? No, what's that about?
There's the cdspell shopt: "If set, minor errors in the spelling of a directory component in a cd command will be corrected. The errors checked for are transposed characters, a missing character, and a character too many. If a correction is found, the corrected path is printed, and the command proceeds." ( https://www.gnu.org/software/bash/manual/html_node/The-Shopt... )
Re: Suicide Linux
#79Re: Suicide Linux
#80> The reaction from the OS is actually rather underwhelming. Somehow related, a coworker at a previous place unmounted some disks on an old AIX production box. It took him a solid minute to realise he had mistakenly unmounted / due to a typo (yes it was possible) as old processes with already opened files were happily serving stuff and only new attempts at opening files were beginning to produce errors. Also, a simil…
So then I typed:
$ shred -n1 -v /dev/sda
Took me about 4 seconds to realize what I did before hitting Ctrl-C.
Then, I sighed. Considered whether I could save anything. Realized there wasn't anything on there worth saving, and reinstalled. :)
I'm usually much more cautious than that and I'm thankful it happened on a dumb test machine at home and not something important, but it was still a bummer and my first real sysadmin-type screw up. Mistakes happen, though. Even Linus once dialed his hard drive [0].