Linux setleds Command
The Linux setleds command is used to set the state of the three LEDs on the top of the keyboard. In Linux, each virtual console has its own independent settings.
Syntax
setleds [-v] [-L] [-D] [-F] [{+|-}num] [{+|-}caps] [{+|-}scroll]
Parameters:
-F: Default option, sets the state of the virtual console.
-D: Changes not only the state of the virtual console but also the default state.
-L: Does not change the state of the virtual console but directly changes the state of the LED display. This will cause the LED display to be out of sync with the current state of the virtual console. We can restore the normal state later with the setleds command using -L without other options.
-num +num: Turns the numeric keypad on or off.
-caps +caps: Turns the caps lock key on or off.
-scroll +scroll: Turns the scroll lock key on or off.
Example
Turns the numeric keypad on and the other two LEDs off.
# setleds +num -caps -scroll