Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- DB 도메인
- 네트워크
- profile
- grep
- 단축키
- ssh
- Quartz
- VirtualBox
- 공통표준용어
- xargs
- Windows 10
- import
- web.xml
- find
- tomcat
- GIT
- port
- Source
- maVen
- context
- lsof
- IntelliJ
- Windows
- bash
- Eclipse
- JavaScript
- copy-dependencies
- Mac
- resource
- netsh
Archives
- Today
- Total
develog
[centos Stream 8][ubuntu 20.04] timedatectl 사용법 본문
현재 상태 보기
$ timedatectl
Local time: Tue 2022-07-12 10:05:32 KST
Universal time: Tue 2022-07-12 01:05:32 UTC
RTC time: Tue 2022-07-12 01:05:33
Time zone: Asia/Seoul (KST, +0900)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
$ timedatectl status
Local time: Tue 2022-07-12 10:05:35 KST
Universal time: Tue 2022-07-12 01:05:35 UTC
RTC time: Tue 2022-07-12 01:05:36
Time zone: Asia/Seoul (KST, +0900)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
$ timedatectl show
Timezone=Asia/Seoul
LocalRTC=no
CanNTP=yes
NTP=yes
NTPSynchronized=yes
TimeUSec=Tue 2022-07-12 10:05:37 KST
RTCTimeUSec=Tue 2022-07-12 10:05:38 KST
NTP 활성화/비활성화
## NTP service 활성화 (true, yes, on)
$ sudo timedatectl set-ntp true
$ timedatectl
NTP service: active
## NTP service 비활성화 (false, no, off)
$ sudo timedatectl set-ntp false
$ timedatectl
NTP service: inactive
타임존, 날짜, 시간 변경
## 타임존 변경
$ sudo timedatectl set-timezone Asia/Seoul
## 날짜 변경
$ sudo timedatectl set-time '2022-07-01'
## Local time 변경
$ sudo timedatectl set-time '01:23'
Comments