Systemd timedatectl: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
|||
| (Eine dazwischenliegende Version von einem anderen Benutzer wird nicht angezeigt) | |||
| Zeile 3: | Zeile 3: | ||
=Set timezones= | =Set timezones= | ||
*timedatectl set-timezone Europe/Berlin | *timedatectl set-timezone Europe/Berlin | ||
| + | =Status timezones= | ||
| + | *timedatectl status | ||
| + | =Status des Dienst= | ||
| + | * systemctl status systemd-timesyncd.service | ||
| + | <pre> | ||
| + | ● systemd-timesyncd.service - Network Time Synchronization | ||
| + | Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled) | ||
| + | Active: active (running) since Wed 2023-02-01 09:42:36 CET; 2h 45min ago | ||
| + | Docs: man:systemd-timesyncd.service(8) | ||
| + | Main PID: 864 (systemd-timesyn) | ||
| + | Status: "Initial synchronization to time server 185.125.190.57:123 (ntp.ubuntu.com)." | ||
| + | Tasks: 2 (limit: 77011) | ||
| + | Memory: 1.7M | ||
| + | CPU: 143ms | ||
| + | CGroup: /system.slice/systemd-timesyncd.service | ||
| + | └─864 /lib/systemd/systemd-timesyncd | ||
| + | |||
| + | Feb 01 09:42:36 krill.xinux.de systemd[1]: Starting Network Time Synchronization... | ||
| + | Feb 01 09:42:36 krill.xinux.de systemd[1]: Started Network Time Synchronization. | ||
| + | Feb 01 09:43:11 krill.xinux.de systemd-timesyncd[864]: Initial synchronization to time server 185.125.190.57:123 (ntp.ubuntu.com). | ||
| + | </pre> | ||
Aktuelle Version vom 1. Februar 2023, 11:29 Uhr
List timezones
- timedatectl list-timezones
Set timezones
- timedatectl set-timezone Europe/Berlin
Status timezones
- timedatectl status
Status des Dienst
- systemctl status systemd-timesyncd.service
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2023-02-01 09:42:36 CET; 2h 45min ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 864 (systemd-timesyn)
Status: "Initial synchronization to time server 185.125.190.57:123 (ntp.ubuntu.com)."
Tasks: 2 (limit: 77011)
Memory: 1.7M
CPU: 143ms
CGroup: /system.slice/systemd-timesyncd.service
└─864 /lib/systemd/systemd-timesyncd
Feb 01 09:42:36 krill.xinux.de systemd[1]: Starting Network Time Synchronization...
Feb 01 09:42:36 krill.xinux.de systemd[1]: Started Network Time Synchronization.
Feb 01 09:43:11 krill.xinux.de systemd-timesyncd[864]: Initial synchronization to time server 185.125.190.57:123 (ntp.ubuntu.com).