OS Manuals

/usr/bin/setleds

Linux keyboard tools

From kbd 2.10.0-r4 (os), captured 2026-11-05 by running setleds --help (exit 0). permalink

Usage: setleds [option...] [[+|-][ num | caps | scroll ]]

Thus,
	setleds +caps -num
will set CapsLock, clear NumLock and leave ScrollLock unchanged.
The settings before and after the change (if any) are reported
when the -v option is given or when no change is requested.
Normally, setleds influences the vt flag settings
(and these are usually reflected in the leds).
With -L, setleds only sets the leds, and leaves the flags alone.
With -D, setleds sets both the flags and the default flags, so
that a subsequent reset will not change the flags.

Options:
  -D, --default   change both the VT flags and their default settings.
  -F, --flags     change the VT flags.
  -L, --leds      change only the leds.
  -V, --version   print version number.
  -v, --verbose   be more verbose.
  -h, --help      print this usage message.

Report bugs to authors.
Options (9)
OptionDescriptionSource
-D, --defaultchange both the VT flags and their default settings.help
-F, --flagschange the VT flags.help
-L, --ledschange only the leds.help
-V, --versionprint version number.help
-v, --verbosebe more verbose.help
-h, --helpprint this usage message.help
-num +numClear or set NumLock. (in the manual page but not in --help)man
-caps +capsClear or set CapsLock. (in the manual page but not in --help)man
-scroll +scrollClear or set ScrollLock. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.