HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

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

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandspecificlocalecliinformationmoreget
linux

Problem

How to use the locale command: Get locale-specific information. More information: <https://manned.org/locale>.

Solution

locale — 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 {{[-a|--all-locales]}}


Display all available locales and the associated metadata:
locale {{[-a|--all-locales]}} {{[-v|--verbose]}}


Display the current date format:
locale date_fmt

Code Snippets

List all global environment variables describing the user's locale

locale

List all available locales

locale {{[-a|--all-locales]}}

Display all available locales and the associated metadata

locale {{[-a|--all-locales]}} {{[-v|--verbose]}}

Display the current date format

locale date_fmt

Context

tldr-pages: linux/locale

Revisions (0)

No revisions yet.