Obsidian/Recognition/Programing/Linux/Ubuntu/리눅스 시간 동기화.md

28 lines
463 B
Markdown
Raw Permalink Normal View History

2023-08-14 16:19:25 +00:00
#Linux
- 하드웨어 시간을 시스템에 적용
```Shell
sudo hwclock --htosys
# or sudo hwclock -s
```
- chrony 를 이용하여 시간 서버와 동기화
```Shell
sudo apt -y install chrony
sudo service chrony start
```
- TimeZone 변경
```Shell
// Seoul 파일 확인
$ ls /usr/share/zoneinfo/Asia
// Localtime 심볼릭 링크 재설정
$ sudo ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
// 적용 확인
$ date
```