locale區域語言設置

查看當前配置spa

# 默認配置
[maintain@localhost:~]$ locale LANG=zh_CN.utf8 LC_CTYPE="zh_CN.utf8" LC_NUMERIC="zh_CN.utf8" LC_TIME="zh_CN.utf8" LC_COLLATE="zh_CN.utf8" LC_MONETARY="zh_CN.utf8" LC_MESSAGES="zh_CN.utf8" LC_PAPER="zh_CN.utf8" LC_NAME="zh_CN.utf8" LC_ADDRESS="zh_CN.utf8" LC_TELEPHONE="zh_CN.utf8" LC_MEASUREMENT="zh_CN.utf8" LC_IDENTIFICATION="zh_CN.utf8" LC_ALL=
# 當前配置
[maintain@localhost:~]$ localectl status System Locale: LANG=en.US.utf8 VC Keymap: us X11 Layout: us [maintain@localhost:~]$ localectl list-locales | grep en.US en_US en_US.iso88591 en_US.iso885915 en_US.utf8

變動區域code

[maintain@localhost:~]$ sudo localectl set-locale  LANG=en_US.utf8
[maintain@localhost:~]$ more /etc/locale.conf 
LANG=en_US.utf8
[maintain@localhost:~]$ 
相關文章
相關標籤/搜索