# Localization with Systemd Tools - `locale` shows current locale info ![[images/Pasted image 20250801193157.png]] - `localectl` shows locale info ![[images/Pasted image 20250801193511.png]] - `localectl list-locales` shows available locales - `sudo localectl set-locale LANG=en_US.UTF-8` - `timedatectl` shows time related info ![[images/Pasted image 20250801193214.png]] - `cat /etc/timezone` is a text file that shows current time ![[images/Pasted image 20250801193358.png]] - use $TZ env variable to set timezone - copy one of `/usr/share/zoneinfo` to `/etc/timezone` - `/etc/localtime` is a binary file that is symbolically linked to one of the time zones in `/usr/share/zonefile` - set time zone with `timedatectl` - `timedatectl set-ntp off` disables timesyncd (not NTP) - `ps aux | grep timesync` to show running timesyncd services - `timedatectl timesync-status` shows more detailed info # NTP - communicates with remote servers for accurate timekeeping via port 123 - complicated hierarchy of remote servers - more precise than systemd-timesyncd - `ps aux | grep ntp` to show running ntp services # Chrony - newer version of NTP used on RHEL - server-client model - `chronyc tracking` shows information about the current status of time synchronization - `ps aux | grep chron` to show running chrony services ![[images/Pasted image 20250801193605.png]] # Systemd Time Synchronization - `systemd-timesyncd` does not use client-server model # Character Sets - ASCII character set is 7 bits - UTF-8 character set is 1 byte - UTF-16 is 2 bytes - Unicode is 3 bytes with multi-language support