CentOS
centos7

CentOS7 の言語設定を変える

More than 1 year has passed since last update.

CentOS7 の言語設定を変える

現在の言語設定を確認

$ localectl
   System Locale: LANG=de_DE.UTF-8
       VC Keymap: de
      X11 Layout: de
$

言語設定のリストを表示

$ localectl list-locales
aa_DJ
aa_DJ.iso88591
aa_DJ.utf8
aa_ER
...skipping...
ja_JP
ja_JP.eucjp
ja_JP.ujis
ja_JP.utf8
japanese
japanese.euc

言語設定を日本語に変更

$ localectl set-locale LANG=ja_JP.utf8
==== AUTHENTICATING FOR org.freedesktop.locale1.set-locale ===
Legitimierung ist zum Festlegen der systemweiten Spracheinstellungen erforderlich.
Authenticating as: root
Password: 
==== AUTHENTICATION COMPLETE ===

現在の言語設定を確認

$ localectl
   System Locale: LANG=ja_JP.utf8
       VC Keymap: de
      X11 Layout: de
$