locale

Get locale-specific information. More information: <https://manned.org/locale>.

Install

All systems
curl cmd.cat/locale.sh
Debian Debian
apt-get install libc-bin
Ubuntu
apt-get install libc-bin
Arch Arch Linux
pacman -S glibc
image/svg+xml Kali Linux
apt-get install libc-bin
CentOS
yum install glibc-common
Fedora
dnf install glibc-common
Windows (WSL2)
sudo apt-get update sudo apt-get install libc-bin
Raspbian
apt-get install libc-bin

Get locale-specific information. More information: <https://manned.org/locale>.

  • List all global environment variables describing the user's locale:
    locale
  • List all available locales:
    locale --all-locales
  • Display all available locales and the associated metadata:
    locale --all-locales --verbose
  • Display the current date format:
    locale date_fmt

© tl;dr; authors and contributors