![how to change timezone linux rhel 6 how to change timezone linux rhel 6](https://www.cyberciti.biz/media/new/faq/2015/01/timezone-outputs-300x85.jpg)
It will be a menu-based type of configuration etc]# dpkg-reconfigure tzdataģ.
How to change timezone linux rhel 6 update#
It will a simple way to update the link /etc/localtime to point to the correct timezone in etc]# tzconfigĢ.Another way is using the command “dpkg-reconfigure tzdata”. A simple way to change your timezone is using the “tzconfig” command which will prompt you with a list of region and cities. But it also has some commands to make you life easier, see items 1 & 2ġ. This localtime symbolic links can be overwritten when you execute tzdata-update which will based from /etc/sysconfig/clock settings configuredĬurrent date in Singapore time, you execute the tzdata-update, it will read the /etc/sysconfig/clock etc]# cat etc]# dateįri Sep 7 07:26:12 SGT etc]# etc]# dateįor Ubuntu/Debian, the above method will also work.
![how to change timezone linux rhel 6 how to change timezone linux rhel 6](https://www.tecmint.com/wp-content/uploads/2012/07/RHEL-6.10-Installation-Type.png)
#ln -s /usr/share/zoneinfo/Asia/Singapore localtime Checking Currently Set Timezone Using /etc/localtime: Listing Available Timezones using timedatectl: List and Set Timezone using tzselect: Setting Timezone. To change the current date, adhere to the following command syntax: sudo timedatectl set-time YYYY-MM-DD Where YYYY is for a year, MM for a month, and DD for a day. Link the Singapore file under the Asia to the /etc/localtime Note: All timezones can be found under the directory /usr/share/zoneinfo Thu Sep 6 23:15:06 UTC etc]# rm /etc/localtime Here are some ways to change your timezone depending on your Linux distribution:Īssuming you have the default or current timezone as UTC and you would like to change it to Singapore etc]# date I think I remember, when I was struggling with this on one of my computers, a way to use date to set the localtime by using UTC -x hours or UTC +x hours, but I cant find a reference for it and cant remember it. UTC, the hardware clock will be set to that. If the system time is 6 June 2012, 5:32 p.m. There is some instance during the Linux installation that you did not bother to set the correct timezone for any reasons like sometimes you are just lazy to set it, you’re in a rush to finish what your boss want you to complete in that day, or you just don’t give a damn ? Seriously, timezone is a bit important especially if you have scheduled scripts that you intended to run. will set the hardware clock to the system time. This post assumed that we will change the System Timezone from the command line without using redhat-config-date.