리눅스 매직 SysRq 키 조합
리눅스를 거의 26 년 동안(아~ 나이 나온다) 사용하면서도 이런 키 조합이 있다는 사실은 오늘 처음 알았다. 재밌네.
리눅스 시스템이 멈춰서 Ctrl+Alt+Del에 응답이 없을 때 시스템을 안전하게 재부팅하거나 셧다운하는 방법이다.
- Alt+SysRq+REISUB: Reboot
- Alt+SysRq+REISUO: Shutdown
각 키의 요약은 다음과 같다.
- unRaw: Take control of keyboard back from X
- tErminate: Send SIGTERM to all processes, allowing them to terminate gracefully
- kIll: Send SIGKILL to all processes except init, forcing them to terminate immediately
- Sync: Flush data to disk
- Unmount: Remount all filesystems read-only
- reBoot: Reboot the system
- Off: Shut off the system
이걸 외우기 쉽게 BUSIER(더 바쁜)를 뒤집으면 REISUB이 된다. REISUO는 마지막 reBoot를 Off로 바꾼다.