Timedatectl: Unterschied zwischen den Versionen
K Textersetzung - „ “ durch „ “ |
K Textersetzung - „ big"“ durch „"“ |
||
| (Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
| Zeile 18: | Zeile 18: | ||
=== Optionen === | === Optionen === | ||
{| class=" | {| class="table table-striped table-hover sortable options gnu" | ||
|- | |- | ||
! Unix !! GNU !! Parameter !! Beschreibung | ! Unix !! GNU !! Parameter !! Beschreibung | ||
| Zeile 29: | Zeile 29: | ||
=== Umgebungsvariablen === | === Umgebungsvariablen === | ||
=== Exit-Status === | === Exit-Status === | ||
{| class=" | {| class="table table-striped table-hover options col1center" | ||
|- | |- | ||
! Wert !! Beschreibung | ! Wert !! Beschreibung | ||
| Zeile 94: | Zeile 94: | ||
== Konfiguration == | == Konfiguration == | ||
=== Dateien === | === Dateien === | ||
{| class=" | {| class="table table-striped table-hover options" | ||
|- | |- | ||
! Datei !! Beschreibung | ! Datei !! Beschreibung | ||
Aktuelle Version vom 1. August 2026, 11:12 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