Site Tools


marc:linux:ntp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
marc:linux:ntp [2021/09/30 08:42] – external edit 127.0.0.1marc:linux:ntp [2021/11/21 12:53] (current) marcv
Line 3: Line 3:
 ==== Config file: ==== ==== Config file: ====
 /etc/ntp.conf /etc/ntp.conf
 +
 +==== timedatectl: ====
 +Gives information on time, date and timezone:
 +<code>
 +timedatectl
 +Local time: Sun 2021-11-21 11:57:23 CET
 +           Universal time: Sun 2021-11-21 10:57:23 UTC
 +                 RTC time: Sun 2021-11-21 10:57:23
 +                Time zone: Europe/Amsterdam (CET, +0100)
 +System clock synchronized: yes
 +              NTP service: active
 +          RTC in local TZ: no
 +</code>
 +
 +<code>
 +timedatectl --help
 +
 +status                   Show current time settings
 +show                     Show properties of systemd-timedated
 +set-time TIME            Set system time
 +set-timezone ZONE        Set system time zone
 +list-timezones           Show known time zones
 +set-local-rtc BOOL       Control whether RTC is in local time
 +set-ntp BOOL             Enable or disable network time synchronization
 +
 +systemd-timesyncd Commands:
 +timesync-status          Show status of systemd-timesyncd
 +show-timesync            Show properties of systemd-timesyncd
 +</code>
 +
  
 ==== Voorbeeld van ntp.conf: ==== ==== Voorbeeld van ntp.conf: ====
marc/linux/ntp.1632984138.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki