Table of Contents

linux#kernle

How to cause kernel panic with a command in Linux.

How to cause kernel panic

# echo c >/proc/sysrq-trigger

Check Kernel Parameter

# cat /proc/sys/kernel/panic
0    <- The 0 is  reboot after 0 second.

or

# sysctl kernel.panic
0

How to Change reboot time.

# vi /etc/sysctl.conf
kernel.panic = 30    <- reboot after 30 seconds

# sysctl -p

# sysctl kernel.panic   <- check





linux#kernle