Zum Inhalt springen

Timedatectl: Unterschied zwischen den Versionen

Aus Foxwiki
Leere Seite erstellt
 
 
(13 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
'''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 ==
<syntaxhighlight lang="bash" highlight="1" line copy>
</syntaxhighlight>
== Aufruf ==
<syntaxhighlight lang="bash" highlight="1" line copy>
timedatectl [OPTIONEN…] {BEFEHL}
</syntaxhighlight>
=== Optionen ===
{| class="wikitable sortable options gnu big"
|-
! Unix !! GNU !! Parameter !! Beschreibung
|-
| || || ||
|-
|}
=== Parameter ===
=== Umgebungsvariablen ===
=== Exit-Status ===
{| class="wikitable options col1center big"
|-
! Wert !! Beschreibung
|-
| 0 || Erfolg
|-
| >0  || Fehler
|}
== Anwendung ==
<syntaxhighlight lang="bash" highlight="1" line copy>
</syntaxhighlight>
<!-- output -->
<syntaxhighlight lang="bash" highlight="" line>
</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 ===
== Konfiguration ==
=== Dateien ===
{| class="wikitable options big"
|-
! Datei !! Beschreibung
|-
| ||
|-
| ||
|}
<noinclude>
== Anhang ==
=== Siehe auch ===
<div style="column-count:2">
<categorytree hideroot=on mode="pages">{{BASEPAGENAME}}</categorytree>
</div>
----
{{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 ===
; Man-Page
# [https://manpages.debian.org/stable/manpages-de/timedatectl.1.de.html timedatectl(1)]
<!--
; Info-Pages
-->
=== Links ===
==== Projekt ====
==== Weblinks ====
{{DEFAULTSORT:timedatectl}}
{{DISPLAYTITLE:timedatectl}}
[[Kategorie:systemd]]
[[Kategorie:Linux/Befehl]]
</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
  1. timedatectl(1)


Links

Projekt

Weblinks