Under RouterOS/Cisco there is a function called "safe mode". When someone presses CTRL+X then the terminal goes in "safe-mode" that meant that if the terminal exists in a "bad way", ex.: the user locks out himself with a bad firewall policy, etc. then the configurations will be restored for the point before the safe mode started. If the terminal in the safe-mode exists okay, like ex.: the user gives out the "exit" command, then all the configuration modifications are going to be permanent.
Are there any great functions like this "safe mode" under any Linux?