Email or username:

Password:

Forgot your password?
Who Let The Dogs Out 🐾

**Волшебство SysReq**

#linux #tips_and_tricks #sysreq

Прежде чем тянуться к кнопке сброса или выключения питания.

Удерживая клавиши Alt и SysReq (PrtScr) и нажимая определённые бу­квенные клавиши, можно отправлять команды непосредственно ядру. Так как ядро слушает эти команды напрямую, они будут работать, даже если X-сервер полностью заблокирован и не реагирует на ввод с клавиатуры.

“r”, чтобы сбросить клавиатуру.

“e”, чтобы отправить сигнал TERM всем процессам.

“i”, отправить сигнал KILL всем оставшим­ся процессам, принудительно завершая их.

“s” — вызов синхронизации ядра, все буферы будут сброшены на диск, чтобы корректно закрыть оставшиеся открытые файлы.

Затем “u” — размонтировать все файловые системы и перемонтировать их в ре­жиме только для чтения, чтобы избежать даль­нейшего повреждения данных.

“b” — перезагрузить систему.

То есть, нажмите и удерживайте Alt и SysReq, затем по очереди нажмите R­E­I­S­U­B, ожидая пару секунд между каждой из них.

2 comments
Who Let The Dogs Out 🐾

**Magic of SysReq**

Before you reach for the reset or power off button.

#linux #tips_and_tricks #sysreq

By holding down the `Alt` and `SysReq` (`PrtScr`) keys and pressing specific letter keys, you can send commands directly to the kernel. Since the kernel listens to these commands directly, they will work even if the `X server` is completely blocked and not responding to keyboard input.

“r” - to reset the keyboard.

“e” - to send a `TERM` signal to all processes.

“i” - send a `KILL` signal to all remaining processes, forcing them to terminate.

“s” is a call to kernel synchronization, all buffers will be flushed to disk to correctly close the remaining open files.

“u” - unmount all file systems and remount them in read-only mode to avoid further data corruption.

“b” - reboot the system.

That is, press and hold `Alt` and `SysReq`, then press `REISUB` in turn, waiting a couple of seconds between each pressing.

**Magic of SysReq**

Before you reach for the reset or power off button.

#linux #tips_and_tricks #sysreq

By holding down the `Alt` and `SysReq` (`PrtScr`) keys and pressing specific letter keys, you can send commands directly to the kernel. Since the kernel listens to these commands directly, they will work even if the `X server` is completely blocked and not responding to keyboard input.

Masta Live
@ashed
А вроде раньше нужно было ядро отдельно собрать с поддержкой SysReq, или в каких-то дистрах по-умолчанию так собирают?
Go Up