/proc/sysrq-trigger详解
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 66 'b' - Will immediately reboot the system without syncing or unmounting 67 your disks. 68 69 'c' - Will perform a system crash by a NULL pointer dereference. 70 A crashdump will be taken if configured. 71 72 'd' - Shows all locks that are held. 73 74 'e' - Send a SIGTERM to all processes, except for init. 75 76 'f' - Will call oom_kill to kill a memory hog process. 77 78 'g' - Used by kgdb on ppc and sh platforms. 79 80 'h' - Will display help (actually any other key than those listed 81 here will display help. but 'h' is easy to remember :-) 82 83 'i' - Send a SIGKILL to all processes, except for init. 84 85 'j' - Forcibly "Just thaw it" - filesystems frozen by the FIFREEZE ioctl. 86 87 'k' - Secure Access Key (SAK) Kills all programs on the current virtual 88 console. NOTE: See important comments below in SAK section. 89 90 'l' - Shows a stack backtrace for all active CPUs. 91 92 'm' - Will dump current memory info to your console. 93 94 'n' - Used to make RT tasks nice-able 95 96 'o' - Will shut your system off (if configured and supported). 97 98 'p' - Will dump the current registers and flags to your console. 99 100 'q' - Will dump per CPU lists of all armed hrtimers (but NOT regular 101 timer_list timers) and detailed information about all 102 clockevent devices. 103 104 'r' - Turns off keyboard raw mode and sets it to XLATE. 105 106 's' - Will attempt to sync all mounted filesystems. 107 108 't' - Will dump a list of current tasks and their information to your 109 console. 110 111 'u' - Will attempt to remount all mounted filesystems read-only. 112 113 'v' - Dumps Voyager SMP processor info to your console. 114 115 'w' - Dumps tasks that are in uninterruptable (blocked) state. 116 117 'x' - Used by xmon interface on ppc/powerpc platforms. 118 119 'z' - Dump the ftrace buffer 120 121 '0'-'9' - Sets the console log level, controlling which kernel messages 122 will be printed to your console. ('0', for example would make 123 it so that only emergency messages like PANICs or OOPSes would 124 make it to your console.) 125 本文出自 “itnihao的运维技术博客” 博客,请务必保留此出处http://itnihao.blog.51cto.com/1741976/830374 (编辑:淮北站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |