English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux setleds command

Linux Command大全

The Linux setleds command is used to set the status of the three LED lights above the keyboard. In Linux, each virtual console has an independent setting.

Syntax

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

Parameters:

  • -F: Preset options, set the status of the virtual console.
  • -D: In addition to changing the status of the virtual console, it also changes the preset status.
  • -L: Do not change the status of the virtual console, but directly change the status of the LED display. This will cause the LED display to be inconsistent with the current status of the virtual console. We can later use -The setleds command with L and no other options will respond normally.
  • -num +num: Toggle the numeric key on or off.
  • -caps +caps: Toggle the uppercase key on or off.
  • -scroll +scroll: Toggle the option key on or off.

Online Examples

Turn on the numeric key and turn off the other two lights.

# setleds +num -caps -scroll

Linux Command大全