1
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AmazonLinux2/CentOS7 日付表記を日本語化

Posted at

#日付表記を日本語化

現在の状態

$ date
Tue Dec 31 13:44:42 JST 2019

設定確認

$ localectl status
   System Locale: LANG=en_US.utf8
       VC Keymap: n/a
      X11 Layout: n/a

利用できる日本語の設定を確認

$ localectl list-locales | grep ja

変更

$ sudo localectl set-locale LANG=ja_JP.utf8
$ source /etc/locale.conf
$ date
2019年 12月 31日 火曜日 13:39:07 JST

戻す

$ sudo localectl set-locale LANG=en_US.utf8
$ source /etc/locale.conf
1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?