← 返回命令列表

Linux command

locale 命令

趣味

复制后可按需替换文件名、目录或参数。

常用示例

Example

locale

Example

locale --all-locales

Example

locale --all-locales --verbose

Example

locale date_fmt

说明

locale displays information about the current locale settings or lists available locales. It shows environment variables that control language, character encoding, date/time formats, and other regional settings.

参数

-a, --all-locales
List all available locales
-v, --verbose
Show verbose locale information
-c, --category-name
Print category names
-k, --keyword-name
Print keyword names
-m, --charmaps
List available character maps

FAQ

What is the locale command used for?

locale displays information about the current locale settings or lists available locales. It shows environment variables that control language, character encoding, date/time formats, and other regional settings.

How do I run a basic locale example?

Run `locale` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a, --all-locales do in locale?

List all available locales