Issue
Below is an image that shows how to set the time automatically from Internet via GUI
I'm trying to write a bash scripts that sets the time the same way as if one does this via GUI
However, I cannot find the proper command line that does so.
thanks in advance
Solution
Please check out timedatectl
, which is the systemd standard way to configure the time zone and time server. Documentation is below:
https://www.freedesktop.org/software/systemd/man/timedatectl.html
Answered By - MichielB