linux.rst
changeset 334 88d85b45d17c
child 335 46777be3b34b
equal deleted inserted replaced
332:80247baf4f55 334:88d85b45d17c
       
     1 -*- mode: outline; coding: utf-8 -*-
       
     2 
       
     3 * SysRq.
       
     4 
       
     5   x86: ALT-SysRq-<command key>
       
     6   SPARC: ALT-STOP-<command key>
       
     7   PPC: ALT - Print Screen (or F13) - <command key>
       
     8 
       
     9   'b' - reboot
       
    10   'p' - dump the current registers and flags to your console
       
    11   'r' - take control of keyboard back from X
       
    12   'e' - send SIGTERM to all processes, except for init
       
    13   'i' - send SIGKILL to all processes, except for init
       
    14   's' - attempt to sync all mounted filesystems
       
    15   'u' - remount all filesystems read-only
       
    16 
       
    17   $ echo 0 > /proc/sys/kernel/sysrq  # disable
       
    18   $ echo 1 > /proc/sys/kernel/sysrq  # enable
       
    19 
       
    20   http://www.kernel.org/doc/Documentation/sysrq.txt
       
    21                 Linux Magic System Request Key Hacks