Date and time
1 minute read
Setting date and time is important for debugging problems and to correlate data from different sources.
First, set the timezone by replacing the link
/etc/localtime with a link that points to the desired timezone:
sudo rm -f /etc/localtime sudo ln -sf /usr/share/zoneinfo/Universal /etc/localtime
Universal with your desired region or timezone.
The date and time can be set by executing the following Linux command (as root):
sudo date -s "Mon Mar 15 18:49:40UTC 2019" sudo hwclock -w
The last line is important because only then the time is set correctly in the hardware clock and is not lost on reboot.