Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the setleds command of linux to set the status of the three LED above the keyboard

Shulou Source: shulou.com Published: 2022-06-02 12:45:53 11月15日 Update

Editor to share with you the use of linux's setleds command to set the status of the three LED above the keyboard, I believe that most people do not know much about it, so share this article for you to learn, I hope you will learn a lot after reading this article, let's go to learn methods together!

Setleds is the combination of the English phrase "setleds", and the translation into Chinese is to set the LED lamp. The setleds command is used to set the status of the three LED lights above the keyboard. In Linux, each virtual console has its own settings.

This is a very magical command that can be used to control the state of the keyboard lights. Then let me learn this command together.

Syntax format: setleds [parameters]

Common parameters:

-F sets the state of the virtual console-D changes the state and preset state of the virtual console-L directly changes the state of the LED display + num/-num turns numeric keys on or off + caps/-caps turns uppercase and lowercase keys on or off + scroll /-scroll turns the option keys on or off

Reference example

Control keyboard lights num lights on and off:

[root@linuxcool ~] # setleds + num

[root@linuxcool ~] # setleds-num

Controls the case key of the keyboard on or off, and the keyboard indicator on or off:

[root@linuxcool ~] # setleds + caps

[root@linuxcool ~] # setleds-caps

The option keys that control the keyboard are on or off, and the keyboard lights are on or off:

[root@linuxcool ~] # setleds + scroll

The combination of the three lights on and off, respectively set to digital light on, upper and lower case light off, the option key scroll light off:

[root@linuxcool ~] # setleds + num-caps-scroll above is all the contents of setting the status of the three LED above the keyboard using the setleds command of 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!

Tags: Keyboard status command learning control three console size master content parameters indicators indicators numbers magic not much can pass most learning methods examples Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info macOS MySQL Apple Redmi