The command's intention is so obvious I wonder why there is no warning from the os, the shell program or the terminal for such, easily blacklist-able commands. Or is there?
Wow, that's good to know!
https://apple.stackexchange.com/questions/141321/how-to-rest...
There's a big warning before it lets you execute the command.
Now, almost 20 years ago only RedHat did it. And it felt wrong to me :-/
[1]: https://en.wikipedia.org/wiki/Rm_%28Unix%29#Protection_of_th...
On FreeBSD you can do
sudo dd if=/dev/random of=/dev/mem
and it will do exactly that, write random crap into your memory without any sort of safeguard, causing a spectacular crash and a console that looks like it's having a seizure. Linux won't let you do that unless it's been compiled with a flag to enable full access to /dev/mem and /dev/kmem.No lasting effects are there? Besides a crash, afterwards I shouldn't have any memory issues, right?
Obviously no warranty on bare metal/systems that are actually used for anything.
More specifically, I used a bunch of these links until I could get a shell, then manually-fixed the rest.
https://askubuntu.com/questions/308939/how-to-reset-default-...
https://askubuntu.com/questions/508359/restore-default-syste...