I know that Linux has a crash command.
It\'s enough to type it in shell and the OS temporarily crash. It\'s great when you want to test how programs behave in such a