Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the shortcuts requested by the system in Linux

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you what are the shortcuts requested by the system in Linux, I believe most people do not know much about it, so share this article for your reference, I hope you will gain a lot after reading this article, let's go to know it!

Linux's magical system request key is a lifesaver for the system. It is a standard key on most keyboards, usually on i386 and ppc, accessed through +. When this feature is enabled, no matter what state the kernel is in, it can communicate with the kernel through a special key combination. This feature allows you to do some useful work when faced with a dying system.

Note: this feature requires CONFIG_MAGIC_SYSRQ to be enabled when configuring the kernel and a switch that sysctl uses to mark this feature.

Enable command: echo 1 > / proc/sys/kernel/sysrq

Here are some main commands and their functions: (sysrq represents the system request standard key, for example, sysrq+b is + + b on i386, the same below)

Sysrq+b: restart the system

Sysrq+e: sends SIGTERM signals to all processes except init

Sysrq+h: displaying SysRq in the console

Sysrq+i: sends SIGKILL signals to all processes except init

Sysrq+k: security access key that kills all programs on this console

Sysrq+l: sends SIGKILL signals to all processes, including init

Sysrq+m: output memory information to the console

Sysrq+o: turn off the machine

Sysrq+p: outputs the register information to the console.

Sysrq+r: turn off keyboard original mode

Sysrq+s: flushes all mounted file systems to disk.

Sysrq+t: outputs the task information to the console.

Sysrq+u: unmount all loaded file systems.

The above is all the contents of the article "what are the shortcuts requested by the system in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report