timedatectl [options …] {command}
query and change the system clock and its settings.
Use systemd-firstboot
(1) to initialize the system time zone for mounted (but not booted) system images.
--no-ask-password |
--no-pager
is not given; overrides $PAGER.
If neither $SYSTEMD_PAGER
nor $PAGER
are set, a set of
well-known pager implementations are tried in turn, including less(1) and more(1), until one is found. If no pager
implementation is discovered no pager is invoked. Setting this environment variable to an empty string or the value "cat" is
equivalent to passing --no-pager.
$SYSTEMD_PAGER
Override the options passed to less (by default "FRSXMK"). $SYSTEMD_LESS
Override the charset passed to less (by default "utf-8", if the invoking terminal is determined to be UTF-8 compatible). $SYSTEMD_LESSCHARSET
$ timedatectl set-ntp true ==== 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 (/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 /lib/systemd/systemd-timesyncd ...