Timedatectl: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
|||
| (12 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
''' | '''timedatectl''' - Systemdatum und -uhrzeit steuern | ||
== Beschreibung == | == Beschreibung == | ||
'''timedatectl''' kann zur Abfrage und Änderung der Systemuhr und ihrer Einstellungen sowie zur (De)aktivierung der Zeitsynchronisationsdienste verwandt werden. | |||
Verwenden Sie systemd-firstboot(1), um die Systemzeitzone für eingehängte (aber nicht gestartete) System-Abbilder zu initialisieren. | |||
'''timedatectl''' kann zur Anzeige des aktuellen Status von Zeitsynchronisationsdiensten wie beispielsweise systemd-timesyncd.service(8) verwandt werden. | |||
== Installation == | == Installation == | ||
| Zeile 9: | Zeile 14: | ||
== Aufruf == | == Aufruf == | ||
<syntaxhighlight lang="bash" highlight="1" line copy> | <syntaxhighlight lang="bash" highlight="1" line copy> | ||
timedatectl [OPTIONEN…] {BEFEHL} | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Zeile 39: | Zeile 45: | ||
<syntaxhighlight lang="bash" highlight="" line> | <syntaxhighlight lang="bash" highlight="" line> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Aktuelle Einstellungen anzeigen: | |||
$ timedatectl | |||
Local time: Thu 2017-09-21 16:08:56 CEST | |||
Universal time: Thu 2017-09-21 14:08:56 UTC | |||
RTC time: Thu 2017-09-21 14:08:56 | |||
Time zone: Europe/Warsaw (CEST, +0200) | |||
System clock synchronized: yes | |||
NTP service: active | |||
RTC in local TZ: no | |||
Netzwerkzeitsynchronisierung aktivieren: | |||
$ timedatectl set-ntp true | |||
; AUTHENTICATING | |||
AUTHENTICATING FOR org.freedesktop.timedate1.set-ntp | |||
Authentication is required to control whether network time synchronization shall be enabled. | |||
Authenticating as: user | |||
Password: ******** | |||
=== AUTHENTICATION COMPLETE === | |||
$ systemctl status systemd-timesyncd.service | |||
● systemd-timesyncd.service - Network Time Synchronization | |||
Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; enabled) | |||
Active: active (running) since Mo 2015-03-30 14:20:38 CEST; 5s ago | |||
Docs: man:systemd-timesyncd.service(8) | |||
Main PID: 595 (systemd-timesyn) | |||
Status: "Using Time Server 216.239.38.15:123 (time4.google.com)." | |||
CGroup: /system.slice/systemd-timesyncd.service | |||
└─595 /usr/lib/systemd/systemd-timesyncd | |||
… | |||
Den aktuellen Status von systemd-timesyncd.service(8) anzeigen: | |||
$ timedatectl timesync-status | |||
Server: 216.239.38.15 (time4.google.com) | |||
Poll interval: 1min 4s (min: 32s; max 34min 8s) | |||
Leap: normal | |||
Version: 4 | |||
Stratum: 1 | |||
Reference: GPS | |||
Precision: 1us (-20) | |||
Root distance: 335us (max: 5s) | |||
Offset: +316us | |||
Delay: 349us | |||
Jitter: 0 | |||
Packet count: 1 | |||
Frequency: -8.802ppm | |||
=== Problembehebung === | === Problembehebung === | ||
| Zeile 62: | Zeile 112: | ||
---- | ---- | ||
{{Special:PrefixIndex/{{BASEPAGENAME}}/}} | {{Special:PrefixIndex/{{BASEPAGENAME}}/}} | ||
---- | |||
systemd(1), hwclock(8), date(1), localtime(5), systemctl(1), systemd-timedated.service(8), systemd-timesyncd.service(8), systemd-firstboot(1) | |||
=== Dokumentation === | === Dokumentation === | ||
; Man-Page | ; Man-Page | ||
# [https://manpages.debian.org/stable/ | # [https://manpages.debian.org/stable/manpages-de/timedatectl.1.de.html timedatectl(1)] | ||
<!-- | <!-- | ||
| Zeile 75: | Zeile 127: | ||
==== Weblinks ==== | ==== Weblinks ==== | ||
{{DEFAULTSORT:timedatectl}} | |||
{{DEFAULTSORT: | {{DISPLAYTITLE:timedatectl}} | ||
{{DISPLAYTITLE: | |||
[[Kategorie: | [[Kategorie:systemd]] | ||
[[Kategorie:Linux/Befehl]] | |||
</noinclude> | </noinclude> | ||
Aktuelle Version vom 20. Dezember 2025, 22:05 Uhr
timedatectl - Systemdatum und -uhrzeit steuern
Beschreibung
timedatectl kann zur Abfrage und Änderung der Systemuhr und ihrer Einstellungen sowie zur (De)aktivierung der Zeitsynchronisationsdienste verwandt werden.
Verwenden Sie systemd-firstboot(1), um die Systemzeitzone für eingehängte (aber nicht gestartete) System-Abbilder zu initialisieren.
timedatectl kann zur Anzeige des aktuellen Status von Zeitsynchronisationsdiensten wie beispielsweise systemd-timesyncd.service(8) verwandt werden.
Installation
Aufruf
timedatectl [OPTIONEN…] {BEFEHL}
Optionen
| Unix | GNU | Parameter | Beschreibung |
|---|---|---|---|
Parameter
Umgebungsvariablen
Exit-Status
| Wert | Beschreibung |
|---|---|
| 0 | Erfolg |
| >0 | Fehler |
Anwendung
Aktuelle Einstellungen anzeigen:
$ timedatectl Local time: Thu 2017-09-21 16:08:56 CEST Universal time: Thu 2017-09-21 14:08:56 UTC RTC time: Thu 2017-09-21 14:08:56 Time zone: Europe/Warsaw (CEST, +0200) System clock synchronized: yes NTP service: active RTC in local TZ: no
Netzwerkzeitsynchronisierung aktivieren:
$ timedatectl set-ntp true
- AUTHENTICATING
AUTHENTICATING FOR org.freedesktop.timedate1.set-ntp
Authentication is required to control whether network time synchronization shall be enabled. Authenticating as: user Password: ********
AUTHENTICATION COMPLETE
$ systemctl status systemd-timesyncd.service ● systemd-timesyncd.service - Network Time Synchronization Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; enabled) Active: active (running) since Mo 2015-03-30 14:20:38 CEST; 5s ago Docs: man:systemd-timesyncd.service(8) Main PID: 595 (systemd-timesyn) Status: "Using Time Server 216.239.38.15:123 (time4.google.com)." CGroup: /system.slice/systemd-timesyncd.service └─595 /usr/lib/systemd/systemd-timesyncd …
Den aktuellen Status von systemd-timesyncd.service(8) anzeigen:
$ timedatectl timesync-status Server: 216.239.38.15 (time4.google.com) Poll interval: 1min 4s (min: 32s; max 34min 8s) Leap: normal Version: 4 Stratum: 1 Reference: GPS Precision: 1us (-20) Root distance: 335us (max: 5s) Offset: +316us Delay: 349us Jitter: 0 Packet count: 1 Frequency: -8.802ppm
Problembehebung
Konfiguration
Dateien
| Datei | Beschreibung |
|---|---|
Anhang
Siehe auch
systemd(1), hwclock(8), date(1), localtime(5), systemctl(1), systemd-timedated.service(8), systemd-timesyncd.service(8), systemd-firstboot(1)
Dokumentation
- Man-Page
Links
Projekt
Weblinks