리눅스에서 날짜/시간을 조정하는 방법에는 여러 가지가 있다.
완전 수동 방식: date 명령어로 날짜 시간을 조정하였음.
옛날(?) 방식: ntpdate, rdate 로 time 서버와 시간 동기화.
최신(?) 방식: timedatectl
1. Ubuntu 18.04 에서 timedatectl 사용하기.
전통적인 명령어인 date 명령어로 현재 날짜/시간을 확인 할 수 있다.
$ date Tue Apr 21 10:57:03 KST 2020
하지만, timedatectl 명령으로는 현재 날짜, 시간, 타임존, 타임서버와의 동기화 여부를 모두 확인 가능하다.
$ timedatectl
Local time: Tue 2020-04-21 10:57:07 KST
Universal time: Tue 2020-04-21 01:57:07 UTC
RTC time: n/a
Time zone: Asia/Seoul (KST, +0900)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no


