[CentOS7] Locale

Linux/CentOS / / 2016. 10. 12. 11:21
반응형

# localectl list-locales | grep en_US.utf8

en_US.utf8



# localectl list-locales | grep ko_KR.utf8

ko_KR.utf8


# localectl set-locale LANG=en_US.utf8

# localectl set-locale LANG=ko_KR.utf8



임시로 Locale 변경

# ls -al /var/log/messages

-rw------- 1 root root 351761 10월 12 11:15 /var/log/messages


# locale

LANG=en.US.UTF-8

LC_CTYPE="ko_KR.UTF-8"

LC_NUMERIC="ko_KR.UTF-8"

LC_TIME="ko_KR.UTF-8"

LC_COLLATE="ko_KR.UTF-8"

LC_MONETARY="ko_KR.UTF-8"

LC_MESSAGES="ko_KR.UTF-8"

LC_PAPER="ko_KR.UTF-8"

LC_NAME="ko_KR.UTF-8"

LC_ADDRESS="ko_KR.UTF-8"

LC_TELEPHONE="ko_KR.UTF-8"

LC_MEASUREMENT="ko_KR.UTF-8"

LC_IDENTIFICATION="ko_KR.UTF-8"

LC_ALL=ko_KR.UTF-8


# export LANG=C

# export LC_ALL=C


# ls -al /var/log/messages

-rw------- 1 root root 351761 Oct 12 11:15 /var/log/messages


# locale

LANG=C

LC_CTYPE="C"

LC_NUMERIC="C"

LC_TIME="C"

LC_COLLATE="C"

LC_MONETARY="C"

LC_MESSAGES="C"

LC_PAPER="C"

LC_NAME="C"

LC_ADDRESS="C"

LC_TELEPHONE="C"

LC_MEASUREMENT="C"

LC_IDENTIFICATION="C"

LC_ALL=C




반응형
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기