Chapter 22. Changing basic environment settings


If your requirements change after installation, you can update the basic system settings accordingly. These basic system settings include Keyboard layout, Date and time, and System locale.

22.1. Configuring the keyboard layout

The keyboard layout settings control the layout used on the text console. If RHEL was installed with a different keyboard layout than the one you use after the installation, you can change the layout.

Procedure

  1. To list available keymaps:

    $ localectl list-keymaps
    ANSI-dvorak
    al
    al-plisi
    amiga-de
    de
    de-nodeadkeys
    ...
  2. Optional: Display the current keymap settings:

    $ localectl status
    ...
    VC Keymap: us
    ...
  3. Change the system keymap, for example:

    # localectl set-keymap de-nodeadkeys

    For more information, see the localectl(1), locale(7), and locale.conf(5) man pages on your system.

You can manually configure date, time, and time zone settings on RHEL systems to ensure accurate timekeeping across your environment. Proper time configuration is essential for authentication, logging, troubleshooting, and consistency with other systems in your infrastructure. Prefer time synchronization by using chrony.

Procedure

  1. Optional: List the timezones:

    # timedatectl list-timezones
      Europe/Berlin
  2. Set the time zone:

    # timedatectl set-timezone <time_zone>
  3. Set the date and time:

    # timedatectl set-time <YYYY-mm-dd HH:MM-SS>

Verification

  1. Display the date, time, and timezone:

    # date
    Mon May 5 09:11:55 CEST 2025
  2. To see more details, use the timedatectl command:

    # timedatectl
     Local time: Mon 2025-05-05 09:11:55 CEST
               Universal time: Mon 2025-05-05 07:11:55 UTC
                     RTC time: Mon 2025-05-05 07:11:55
                    Time zone: Europe/Berlin (CEST, +0200)
    System clock synchronized: no
                  NTP service: inactive
              RTC in local TZ: no

    For more information, see the date(1) and timedatectl(1) man pages on your system.

22.3. Configuring the system locale

The system locale specifies the language settings used by system services and user interfaces. System-wide locale settings determine the language, region, and formatting conventions used by the operating system and its applications.

These settings are stored in the /etc/locale.conf file, which the systemd daemon reads during early boot. Services and users inherit the locale settings configured in /etc/locale.conf, unless individual users or programs override them.

Procedure

  1. Optional: Display the current system locales settings:

    # localectl status
    System Locale: LANG=C.UTF-8
    	VC Keymap: de-nodeadkeys
       X11 Layout: de
  2. List available system locale settings:

    $ localectl list-locales
    C.UTF-8
    ...
    en_US.UTF-8
    en_ZA.UTF-8
    en_ZW.UTF-8
    ...
  3. Update the syste locale setting, for example::

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

    For more information, see the localectl(1), locale(7), and locale.conf(5) man pages on your system.

Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat Documentation

Legal Notice

Theme

© 2026 Red Hat
Back to top