How to update timezone on an Ubuntu Linux?
Introduction: In this article, we’ll explain how you can set the time zone on an Ubuntu system running 16.04 version of the operating system. Generally, we set the time zone for the computer during installation but it can be changed after the operating system has been installed. We may use a GUI tool to modify the time zone but in this article, we’ll be using command line utilities to accomplish this task. Check current time zone in Linux Step 1: We’ll use the date command with the %z and %Z options to print only the time zone information. root@linuxnix:~# date '+%z %Z' -0700 PDT %z displays the time in numeric notation and %Z displays time zone in alphabetic notation. Another way to check your time zone is to read the /etc/timezone file as shown here. root@linuxnix:~# cat /etc/timezone America/Los_Angeles So, it appears that our system is set to America/Los_Angeles timezone but since I’m in India, we’ll need to change this. How to change timezone in Linux using tzselect/tzdata Step 2: Historically one would use the tzconfig command to change the time zone but that has been deprecated now. root@linuxnix:~# tzconfig WARNING: the tzconfig command is deprecated, please use: dpkg-reconfigure tzdata root@linuxnix:~# Different Linux distributions have come up with different utilities to modify simplify the task of modifying the time zone. In Ubuntu, we could use dpkg-reconfigure tzdata to update...
Read More