Linux
Ubuntu 20.04.5 TimeZone 변경 방안
Hwoarang757
2023. 7. 3. 17:17
출처 : Linux : Ubuntu 20.04 : Timezone 설정, 변경 방법, 예제, 명령어 (tistory.com)
Linux : Ubuntu 20.04 : Timezone 설정, 변경 방법, 예제, 명령어
많은 시스템 관련 작업 및 프로세스에는 정확한 시간대를 사용하는 것이 필수적입니다. 예를 들어, 크론 대몬은 크론 작업을 실행하기 위해 시스템의 시간대를 사용하고 로그 파일의 타임스탬
jjeongil.tistory.com
Ubuntu GUI 에서는 설정을 변경 할 수 없어 출처의 내용 과 같이 UTC 기준에서 Asia/Seoul로 변경 시도를 하였습니다.
$ timedatectl
Local time: Mon 2023-07-03 08:05:33 UTC
Universal time: Mon 2023-07-03 08:05:33 UTC
RTC time: Mon 2023-07-03 08:05:21
Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
$ ls -l /etc/localtime
lrwxrwxrwx 1 root root 27 Jun 27 03:43 /etc/localtime -> /usr/share/zoneinfo/Etc/UTC
$ sudo timedatectl set-timezone Asia/Seoul
$ ls -l /etc/localtime
lrwxrwxrwx 1 root root 30 Jul 3 17:06 /etc/localtime -> /usr/share/zoneinfo/Asia/Seoul
$ date
Mon 03 Jul 2023 05:06:21 PM KST