Linux Comm Setleds
# Linux setleds Command
[ Linux Command Reference](#)
The Linux setleds command is used to set the state of the three LEDs above the keyboard. In Linux, each virtual console has its own independent settings.
### Syntax
setleds [{+|-}num] [{+|-}caps] [{+|-}scroll]
**Parameters**:
* -F: The default option, sets the virtual console state.
* -D: In addition to changing the virtual console state, also changes the default state.
* -L: Does not change the virtual console state, but directly changes the LED display state. This may cause the LED display to be inconsistent with the current virtual console state. We can later use the setleds command with -L and no other options to restore the normal state.
* -num +num: Turn the Num Lock key on or off.
* -caps +caps: Turn the Caps Lock key on or off.
* -scroll +scroll: Turn the Scroll Lock key on or off.
### Example
Turn on Num Lock, and turn off the other two lights.
# setleds +num -caps -scroll
[ Linux Command Reference](#)
YouTip