How to change Time in Ubuntu 18.04.4 LTS
Check the current time setup
#timedatectl
Check localtime link path
$ ls -l /etc/localtime
Check all available time zones.
#timedatectl list-timezones
Select Asia/Dhaka from the time zone
#sudo timedatectl set-timezone Asia/Dhaka
Unlink existing localtime
#sudo unlink /etc/localtime
Link local time with the new setup.
#sudo ln -s /usr/share/zoneinfo/Asia/Dhaka /etc/localtime
Finally check the time setting again.
#timedatectl
#timedatectl
Check localtime link path
$ ls -l /etc/localtime
Check all available time zones.
#timedatectl list-timezones
Select Asia/Dhaka from the time zone
#sudo timedatectl set-timezone Asia/Dhaka
Unlink existing localtime
#sudo unlink /etc/localtime
Link local time with the new setup.
#sudo ln -s /usr/share/zoneinfo/Asia/Dhaka /etc/localtime
Finally check the time setting again.
#timedatectl
Comments
Post a Comment