timedatectl status # 현재 시간, 시간대, NTP 설정 상태를 확인
[root@localhost boot]# timedatectl status
Local time: 금 2025-05-09 13:42:29 KST
Universal time: 금 2025-05-09 04:42:29 UTC
RTC time: 금 2025-05-09 04:42:29
Time zone: Asia/Seoul (KST, +0900)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
timedatectl list-timezones
#모든 타임존 목록 출력 (많아지므로 grep과 함께 사용 권장)
[root@localhost boot]# timedatectl list-timezones |grep Asia/Seoul
Asia/Seoul
timedatectl set-timezone Asia/Seoul
#시간대를 한국 표준시(KST)로 설정
[root@localhost boot]# timedatectl set-timezone Asia/Seoul
timedatectl status # 변경된 시간대가 적용되었는지 다시 확인
[root@localhost boot]# timedatectl status
Local time: 금 2025-05-09 13:45:07 KST
Universal time: 금 2025-05-09 04:45:07 UTC
RTC time: 금 2025-05-09 04:45:07
Time zone: Asia/Seoul (KST, +0900)
System clock synchronized: no
NTP service: active
RTC in local TZ: no