Geody Labs


# Main Index: Debian Linux Magic Spells Cheat Sheet (one liners, how to, tips and tricks)

# Localization

dpkg-reconfigure locales # edit locale / add new locales
locale  # show locale settings
locale -a  # show available locales
locale|cut -d= -f1|xargs locale -kc|less  # list fields in locale database
locale territory  # show the locale territory # echo "This server is configured for `locale territory`"
printf "%'d\n" 1234567  # print an integer number grouping thousands with the locale configuration

l /usr/share/i18n/locales/ # List all available locales
l /usr/share/i18n/locales/en_* # List all available English locales

localectl # Show system locales
cat /etc/default/locale # Show system locale variables

jed /etc/default/locale # Set system locale variables

Set the following variables to the given values if you want to get the date in 12 or 24 hours:

# 24 hours
----------

LANG=en_IE.UTF-8
LANGUAGE=en_IE:en

----------

# 12 hours (AM/PM)
----------

LANG=en_US.UTF-8
LANGUAGE=en_US:en

----------

jed /etc/locale.gen # Locales to be generated. Uncomment (remove # ) the locales you want to generate

locale-gen # generate locales (the ones anabled in /etc/locale.gen )




Please DONATE to support the development of Free and Open Source Software (PayPal, Credit Card, Bitcoin, Ether)

Page issued on 25-Sep-2022 04:23 GMT
Copyright (c) 2022 Geody - Legal notices: copyright, privacy policy, disclaimer