Linux Commands Helper

💬 Your AI-powered Linux assistant

setleds Command - Set Keyboard LED State

The setleds command is used to set the state of NumLock, CapsLock, and ScrollLock LEDs on a keyboard connected to a Linux console. It is useful for scripting or controlling keyboard indicators.

Syntax

setleds [options] [+-num] [+-caps] [+-scroll]

Examples

setleds +num -caps -scroll

Turn on NumLock, turn off CapsLock and ScrollLock LEDs.

setleds -caps

Turn off CapsLock LED.

setleds +scroll

Turn on ScrollLock LED.

Notes

  • setleds only works on virtual consoles, not in graphical terminal emulators.
  • Root privileges may be required to change LED states.
  • Useful for accessibility or automation scripts.

© 2025 Linux Commands Helper. All rights reserved.

This project is under construction. Feedback and contributions are welcome.

Fazier badgeFeatured on Startup Fame