Skip to content

Linux localectl Guide

Mattscreative edited this page Dec 5, 2025 · 2 revisions

Linux localectl Guide

Complete beginner-friendly guide to localectl on Linux, covering Arch Linux, CachyOS, and other distributions including locale configuration, keyboard layout, and system localization.


Table of Contents

  1. Understanding localectl
  2. localectl Basics
  3. Locale Configuration
  4. Keyboard Layout
  5. Troubleshooting

Understanding localectl

What is localectl?

localectl controls system locale and keyboard (systemd).

Uses:

  • View locale: Show locale settings
  • Set locale: Configure system locale
  • Keyboard layout: Set keyboard layout
  • Localization: Manage system localization

Why it matters:

  • Locale management: Manage system locale
  • Keyboard setup: Configure keyboard
  • Localization: System localization

localectl Basics

View Status

Basic usage:

# View locale status
localectl

# Shows locale information

Locale Information

Complete info:

# All locale information
localectl status

# Shows:
# - System locale
# - VC keymap
# - X11 layout

Locale Configuration

Set Locale

Change locale:

# Set locale
sudo localectl set-locale LANG=en_US.UTF-8

# Changes system locale

List Locales

Available locales:

# List locales
localectl list-locales

# Shows all available locales

⌨ Keyboard Layout

Set Keymap

Change keyboard:

# Set keyboard layout
sudo localectl set-keymap us

# Sets keyboard layout

List Keymaps

Available keymaps:

# List keymaps
localectl list-keymaps

# Shows all available keymaps

Troubleshooting

localectl Not Found

Check systemd:

# localectl is part of systemd
# Usually pre-installed on systemd systems

# Check systemd
systemctl --version

Summary

This guide covered localectl usage, locale configuration, and keyboard setup for Arch Linux, CachyOS, and other distributions.


Next Steps


This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.

Clone this wiki locally