Timezone: Difference between revisions

From HPCWIKI
Jump to navigation Jump to search
(Add categories: Linux, Reference)
(Fix: remove --- horizontal lines (7 removed))
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Status
|status=Draft
|owner=Knowledge Agent
|last_update=2026-07-16
|review=Pending
}}
{{TOC}}
== Overview ==
Timezone에 대한 기술 문서입니다.
=== Summary ===
* 무엇인가? - Timezone
* 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
* 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시
== Purpose ==
이 문서가 존재하는 이유
* Goal: Timezone에 대한 기술 정보 제공
* Scope: Timezone의 개념, 사용법, 설정
* Non-goals: 다른 주제로의 확장
== Key Concepts ==
{| class="wikitable"
! Concept
! Description
! Related
|-
| Timezone
| HPC/서버 환경에서 중요한 기술 개념
| [[Linux]], [[Server]]
|}
== Detailed Explanation ==


== Timezone set on Linux ==
Timezone tells your system where you are in the world depending on your exact location on this planet with GMT-/+<nowiki><time> format.</nowiki>
Timezone tells your system where you are in the world depending on your exact location on this planet with GMT-/+<nowiki><time> format.</nowiki>
On most [[Linux]],  
On most [[Linux]],  
<code>/etc/timezone</code> is a text-based representation of what timezone you are in.
<code>/etc/timezone</code> is a text-based representation of what timezone you are in.
<code>/etc/localtime</code> is a binary representation of the exact rules for calculating the time relative to UNIX time by a symbolic link from <code>/etc/localtime</code> to a file in the <code>/usr/share/zoneinfo</code> directory.
<code>/etc/localtime</code> is a binary representation of the exact rules for calculating the time relative to UNIX time by a symbolic link from <code>/etc/localtime</code> to a file in the <code>/usr/share/zoneinfo</code> directory.
instead of manually chaing those file,  timedatectl command change your timezone much easily.<syntaxhighlight lang="bash">
instead of manually chaing those file,  timedatectl command change your timezone much easily.<syntaxhighlight lang="bash">
# Get available timezone list and it's name  
# Get available timezone list and it's name  
$ timedatectl list-timezones  | grep -i seoul
$ timedatectl list-timezones  | grep -i seoul
Asia/Seoul
Asia/Seoul
# Set system timezone to Asia/Seoul, for example.
# Set system timezone to Asia/Seoul, for example.
$ sudo timedatectl set-timezone Asia/Seoul
$ sudo timedatectl set-timezone Asia/Seoul
$ ls -al /etc/timezone
$ ls -al /etc/timezone
-rw-r--r-- 1 root root 11 May 30 10:51 /etc/timezone
-rw-r--r-- 1 root root 11 May 30 10:51 /etc/timezone
$ cat /etc/timezone
$ cat /etc/timezone
Asia/Seoul
Asia/Seoul
$ ls -al /etc/localtime
$ ls -al /etc/localtime
lrwxrwxrwx 1 root root 32 May 30 10:51 /etc/localtime -> ../usr/share/zoneinfo/Asia/Seoul
lrwxrwxrwx 1 root root 32 May 30 10:51 /etc/localtime -> ../usr/share/zoneinfo/Asia/Seoul
</syntaxhighlight>
</syntaxhighlight>
== systemd-timesyncd ==
systemd uses /etc/systemd/timesyncd.conf file for NTP time sync.  
systemd uses /etc/systemd/timesyncd.conf file for NTP time sync.  
FallbackNTP points to the NTP servers, for example, FallbackNTP=time.nist.gov <syntaxhighlight lang="bash">
FallbackNTP points to the NTP servers, for example, FallbackNTP=time.nist.gov <syntaxhighlight lang="bash">
# changing configuration file needs to restart systemd-timesyncd service
# changing configuration file needs to restart systemd-timesyncd service
# timedatectl show-timesync command to verify current status.


#To enable the network time synchronization
%sudo timedatectl set-ntp true


#To disable the network time sync
== Best Practices ==
$sudo timedatectl set-ntp false
 
</syntaxhighlight>
* 최신 버전 사용 권장
* 공식 문서 참고
* 테스트 환경에서 먼저 검증
 


== References ==
== References ==
<references />
 
[[Category:Linux]]
* [https://wiki.hpcmate.com Timezone]
 
 
== Related Pages ==
 
* [[Linux]]
* [[Server]]
* [[Hardware]]
* [[Network]]
 
 
[[Category:Server]]
== Knowledge Graph ==
 
Related
 
→ [[Linux]]
→ [[Server]]
→ [[Hardware]]
→ [[Network]]


[[Category:Reference]]
[[Category:Reference]]

Latest revision as of 11:31, 17 July 2026

Template:Status

Template:TOC

Overview

Timezone에 대한 기술 문서입니다.

Summary

  • 무엇인가? - Timezone
  • 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
  • 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시


Purpose

이 문서가 존재하는 이유

  • Goal: Timezone에 대한 기술 정보 제공
  • Scope: Timezone의 개념, 사용법, 설정
  • Non-goals: 다른 주제로의 확장


Key Concepts

Concept Description Related
Timezone HPC/서버 환경에서 중요한 기술 개념 Linux, Server


Detailed Explanation

Timezone tells your system where you are in the world depending on your exact location on this planet with GMT-/+<time> format. On most Linux, /etc/timezone is a text-based representation of what timezone you are in. /etc/localtime is a binary representation of the exact rules for calculating the time relative to UNIX time by a symbolic link from /etc/localtime to a file in the /usr/share/zoneinfo directory.

instead of manually chaing those file, timedatectl command change your timezone much easily.

# Get available timezone list and it's name 
$ timedatectl list-timezones  | grep -i seoul
Asia/Seoul
# Set system timezone to Asia/Seoul, for example.
$ sudo timedatectl set-timezone Asia/Seoul
$ ls -al /etc/timezone
-rw-r--r-- 1 root root 11 May 30 10:51 /etc/timezone
$ cat /etc/timezone
Asia/Seoul
$ ls -al /etc/localtime
lrwxrwxrwx 1 root root 32 May 30 10:51 /etc/localtime -> ../usr/share/zoneinfo/Asia/Seoul

systemd uses /etc/systemd/timesyncd.conf file for NTP time sync. FallbackNTP points to the NTP servers, for example, FallbackNTP=time.nist.gov <syntaxhighlight lang="bash">

  1. changing configuration file needs to restart systemd-timesyncd service


Best Practices

  • 최신 버전 사용 권장
  • 공식 문서 참고
  • 테스트 환경에서 먼저 검증


References


Related Pages

Knowledge Graph

Related

LinuxServerHardwareNetwork