IT/LINUX
ubuntu timezone 변경
ssung85
2023. 4. 18. 15:02
728x90
현재 시스템의 타임존을 확인합니다.
# timedatectl
Local time: Fri 2019-04-19 07:53:45 UTC
Universal time: Fri 2019-04-19 07:53:45 UTC
RTC time: n/a
Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no
설정할 타임존 값을 확인합니다. 여기선 서울로 설정합니다.
# timedatectl list-timezones | grep Seoul
Asia/Seoul
위에서 확인한 타임존 값으로 설정합니다.
# timedatectl set-timezone Asia/Seoul
변경한 타임존이 적용되었는지 확인합니다.
# timedatectl
Local time: Fri 2019-04-19 16:57:40 KST
Universal time: Fri 2019-04-19 07:57:40 UTC
RTC time: n/a
Time zone: Asia/Seoul (KST, +0900)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no
728x90