본문 바로가기

리눅스

리눅스에서 Timezone을 Seoul로 변경하는 방법

반응형

리눅스에서 시스템 시간(Timezone)을 서울로 변경하는 방법

1. 현재 시스템 Timezone 확인

현재 시스템의 localtime 설정을 확인합니다.

ls -al /etc/localtime
-rw-r--r-- 1 root root 3519 Feb 26 2006 /etc/localtime

2. 한국(서울) Timezone 설정

한국 표준 시간(KST)을 사용하려면 /etc/localtime을 Asia/Seoul timezone으로 연결합니다.

ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime

3. Timezone 적용 확인

설정 후 /etc/localtime이 올바르게 연결되었는지 확인합니다.

ls -al /etc/localtime
lrwxrwxrwx 1 root root 30 May 15 01:02 /etc/localtime -> /usr/share/zoneinfo/Asia/Seoul
728x90

4. 시스템 시간 확인

현재 시스템 시간을 확인합니다.

date
Fri May 15 10:32:10 KST 2026

5. 시간 동기화 (Time Synchronization)

서버 시간이 정확하지 않은 경우 외부 시간 서버와 동기화할 수 있습니다.

 

rdate를 이용한 시간 동기화

rdate -s time.bora.net && clock -w

6. 최신 Linux 권장 방법 (timedatectl)

최근 Linux 배포판에서는 timedatectl 사용을 권장합니다.

 

Timezone 확인

timedatectl

한국 시간 설정

timedatectl set-timezone Asia/Seoul

설정 확인

timedatectl
Local time: Fri 2026-05-15 10:32:10 KST
Universal time: Fri 2026-05-15 01:32:10 UTC
Time zone: Asia/Seoul (KST, +0900)

 

728x90
반응형