Locale Flashcards
Display locale info
locale here LANG var in set localectl also contains LANG var LANG=en_US.utf8
List out available locales
localectl list-locales
Set new locale language
LANG=pl_PL.utf8
This will update all values shown in locale command with =pl_PL.utf8
Util to convert files from one char encoding to another
iconv -f ISO-8859-1 -t UTF-8 -o new_utf8_file old_iso8859_file
Update locale permanently
localectl set-locale el_GR.iso88597
Display date
date -u UTC time date +%F -full date date +%D -M/D/Y date +%m-%d-%Y date +%a -Thu date +%A -Thursday date +%b -Jun date +%d- 31
Display current date and date settings
timedatectl
Apply time settings
timedatectl set-time “2020-01-01 01:00:25”
List timezones
timedatectl list-timezones
Set timezone
timedatectl set-timezone “America/New_York”
Menu-driven util to set up timezone
tzselect
RHEL location of file with timezone settings
Debian location of file with timezone settings
/etc/localtime
/etc/timezone