cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Cloud



Etc


Reference














.

os:linux:kernel:cause-kernel-panic.html



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




os/linux/kernel/cause-kernel-panic.html.txt ยท Last modified: 2017/05/14 by admin

Page Tools