change timezone ubuntu terminal code example
Example 1: linux set date timezone
# To view timezone
timedatectl
# list all available timezones
timedatectl list-timezones
# update timezone
sudo timedatectl set-timezone your_time_zone
Example 2: set timezone in debian terminal
sudo timedatectl set-timezone <your_time_zone>
Example 3: ubuntu server change timezone
$ sudo dpkg-reconfigure tzdata