Configure and inspect system locale and keyboard mappings quickly with a single systemd helper. 02.04.2026 | reading time: 2 min Want consistent locale and keyboard behavior across boots and graphical sessions? Use `localectl` to tell systemd what the system locale and keymaps should be, and then let systemd-localed persist those settings for consoles and X11/Wayland. Quick status check Inspect current settings with a single command and read the important fields; for example run: ```bash $ localectl status System Locale: LANG=en_US.UTF-8 VC Keymap: us X11 Layout: us ``` This shows the effective system locale, the virtual-console keymap and the X11 layout. Set the system locale Change and persist the system locale in one step, then verify; for example: ```bash $ sudo localectl set-locale LANG=de_DE.UTF-8 $ localectl status System Locale: LANG=de_DE.UTF-8 VC Keymap: us X11 Layout: us ``` Run a login or restart services that read locale variables to apply where needed. Adjust console and X11 keymaps Switch console and graphical keyboard layouts with targeted commands; try these actions: ```bash $ sudo localectl set-keymap de $ sudo localectl set-x11-keymap de pc105 nodeadkeys $ localectl status System Locale: LANG=de_DE.UTF-8 VC Keymap: de X11 Layout: de ``` This applies to virtual consoles and writes X11 preferences for display managers. Other useful capabilities Discover available values and debug issues: use `localectl list-locales` to see supported locales and `localectl list-keymaps` or `list-x11-keymaps` to enumerate keymaps, and inspect the `systemd-localed` service when settings do not persist. Tools around localectl localectl is a front end to systemd-localed; for low-level generation use `localedef`, for X-level testing use `setxkbmap`, and for console testing use `loadkeys`; combine them when building custom locales or layouts. Final note localectl makes consistent locale and keyboard configuration easy and scriptable, removing manual edits in multiple files; explore its discovery commands, practice the examples, and consider studying further to certify skills with CompTIA Linux+ or LPIC-1 at bitsandbytes.academy for focused exam preparation. Join Bits & Bytes Academy First class LINUX exam preparation. utilities setup scripting