Latest web development tutorials

Linux setleds command

Linux command Daquan Linux command Daquan

Linux setleds command to set the top of the keyboard three LED status. In Linux, each virtual console has its own settings.

grammar

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

Parameters:

  • -F: Default options, the setting state of the virtual console.
  • -D: In addition to changing the state of the virtual console, but also change the default state.
  • -L: Does not change the state of the virtual console, but directly change the status LED display. This will make LDE display and the current state of the virtual console does not comply. We can return to normal conditions in later with the -L and free of other options setleds command.
  • -num + num: The number keys on or off.
  • -caps + caps: the key to open or close the case.
  • -scroll + scroll: to open or close the Option key.

Examples

The numeric key to open and the remaining two lights off.

# setleds +num -caps -scroll

Linux command Daquan Linux command Daquan