Linux "setleds" Command Line Options and Examples
set the keyboard leds

Setleds reports and changes the led flag settings of a VT (namely NumLock, CapsLock and ScrollLock). Without arguments, setleds prints the current settings. With arguments, it sets or clears the indicated flags (and leaves the others unchanged).


Usage:

setleds [-v] [-L] [-D] [-F] [{+|-}num] [{+|-}caps] [{+|-}scroll]




Command Line Options:

-num
Clear or set NumLock. (At present, the NumLock setting influences the interpretation of keypad keys.Pressing the NumLock key complements the NumLock setting.)
setleds -num ...
-caps
Clear or set CapsLock. (At present, the CapsLock setting complements the Shift key when applied toletters. Pressing the CapsLock key complements the CapsLock setting.)
setleds -caps ...
-scroll
Clear or set ScrollLock. (At present, pressing the ScrollLock key (or ^S/^Q) stops/starts console out‐put.)BUGSIn keyboard application mode the NumLock key does not influence the NumLock flag setting.
setleds -scroll ...