본문 바로가기

Engineering/Linux

Timezone 변경 on CentOS 7

728x90

CentOS 7 에서 Timezone 변경


현재의 타임존 확인

# ls -l /etc/localtime

lrwxrwxrwx. 1 root root 41 Dec  8 06:33 /etc/localtime -> ../usr/share/zoneinfo/America/Los_Angeles


타임존 리스트 확인

# timedatectl

      Local time: Mon 2016-01-11 17:32:03 PST

  Universal time: Tue 2016-01-12 01:32:03 UTC

        RTC time: Tue 2016-01-12 01:32:03

        Timezone: America/Los_Angeles (PST, -0800)

     NTP enabled: yes

NTP synchronized: yes

 RTC in local TZ: no

      DST active: no

 Last DST change: DST ended at

                  Sun 2015-11-01 01:59:59 PDT

                  Sun 2015-11-01 01:00:00 PST

 Next DST change: DST begins (the clock jumps one hour forward) at

                  Sun 2016-03-13 01:59:59 PST

                  Sun 2016-03-13 03:00:00 PDT


# timedatectl list-timezones | grep Seoul

Asia/Seoul


타임존 설정(Asia/Seoul)

# timedatectl set-timezone Asia/Seoul

# ls -l /etc/localtime

lrwxrwxrwx. 1 root root 32 Jan 12 10:34 /etc/localtime -> ../usr/share/zoneinfo/Asia/Seoul


참고 사이트

http://www.cyberciti.biz/faq/centos-linux-6-7-changing-timezone-command-line/