Forrest logo
back to the localectl tool

localectl:tldr:c0495

localectl: Set the system keyboard mapping for the console and X11.
$ localectl set-keymap ${us}
try on your machine

The localectl set-keymap command is used to set the keyboard layout or keymap on a Linux system. In this specific command, ${us} is a placeholder for the keymap value, which is expected to be replaced with the actual keymap value.

For example, if you want to set the keymap to the "US" (United States) layout, you would replace ${us} with us. So the command would be:

localectl set-keymap us

This command will configure the system to use the US keyboard layout, which determines the mapping between the keys on a physical keyboard and the characters they produce when typed. Different keymaps are used for different languages and regions to accommodate variations in character sets and keyboard layouts.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the localectl tool