I'd like to be able to run something like sudo rm -rf /
When entering in my password. Just in case I ever need to wipe everything at once before I even login.
I know there are security concerns, so in a perfect world, I'd like to be able to set it up in .bashrc so I would type in something less obvious.
Anyone know of a way to do this?
sudo rm -rf /
would clear your installation (and all files on any mounted device). Luckily they prevented it to be run. – kos Jul 20 '15 at 15:51alias notwhatyouthink='sudo rm -rf /'
in .bashrc and if you ever need it , runnotwhatyouthink
command – Sergiy Kolodyazhnyy Jul 20 '15 at 15:51rm -rf /
does nothing but print an error message. This is defined by the current POSIX specs. – terdon Jul 20 '15 at 16:13sudo shred -n1 /dev/sda
. Or encrypt the whole system. – Germar Jul 20 '15 at 17:10