Outils pour utilisateurs

Outils du site


tech:ultra_fast_reboot

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tech:ultra_fast_reboot [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:ultra_fast_reboot [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Brouillon}}
 +
 +# Ultra fast reboot
 +
 +Technique pas recommandé
 +
 +Voir 
 +* https://fr.wikipedia.org/wiki/Magic_SysRq_key
 +
 +Source article complet :
 +* https://major.io/2009/01/29/linux-emergency-reboot-or-shutdown-with-magic-commands/
 +
 +~~~bash
 +echo 1 > /proc/sys/kernel/sysrq 
 +echo b > /proc/sysrq-trigger
 +~~~
 +
 +Ultra fast shutdown
 +
 +~~~bash
 +echo 1 > /proc/sys/kernel/sysrq 
 +echo o > /proc/sysrq-trigger
 +~~~
 +
 +## Autres
 +
 +~~~
 +last | head
 +root     pts/       192.168.3.81    Thu May 11 09:19   still logged in
 +reboot   system boot  3.10.0-327.el7.x Thu May 11 09:17 - 09:24  (00:07)
 +process  pts/0        192.168.3.81    Wed May 10 16:42 - down   (00:00)
 +root     pts/       192.168.3.81    Wed May 10 16:34 - 16:42  (00:07)
 +reboot   system boot  3.10.0-327.el7.x Wed May 10 16:31 - 16:42  (00:10)
 +process  pts/0        192.168.3.81    Wed May 10 16:30 - 16:30  (00:00)
 +root     pts/       192.168.3.81    Wed May 10 16:28 - 16:29  (00:01)
 +reboot   system boot  3.10.0-327.el7.x Wed May 10 16:27 - 16:42  (00:15)
 +root     pts/       192.168.3.81    Wed May 10 16:19 - crash  (00:08)
 +reboot   system boot  3.10.0-327.el7.x Wed May 10 16:15 - 16:42  (00:26)
 +~~~
 +
 +~~~
 +last -x shutdown
 +shutdown system down  3.10.0-327.el7.x Wed May 10 16:42 - 09:17  (16:34)
 +shutdown system down  3.10.0-327.el7.x Fri May  5 18:17 - 09:04 (3+14:46)
 +shutdown system down  3.10.0-327.el7.x Wed Apr  5 16:09 - 15:07 (29+22:58)
 +~~~
 +
 +~~~bash
 +systemctl mask sleep.target suspend.target
 +uptime
 +ps -p 1 -o stime
 +lastb
 +chmod +s /sbin/halt
 +chmod +s /sbin/reboot
 +~~~
 +
 +
 +
 +## Autres
 +
 +~~~bash
 +exec /sbin/init
 +~~~
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki