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

28 lines
463 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#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
```