Next, we need to create a soft link to required time zone i.e. So we will start by removing the current localtime file, Of these mentioned timezones, we will be switching from Jakarta to Kolkata. Let’s check all the timezones that are available in Asia, Next, we can check all the timezone available to use, To see the current timezone file associated with /etc/localtime, use the following command, So in order to change timezone in Linux, we first need to remove the file ‘/etc/localtime’ & create a soft link to the timezone file in ‘/usr/share/zoneinfo/’. Files for all timezones are stored at location ‘/usr/share/zoneinfo/’. Timezone in CentOS, Redhat & other RHEL based OS like amazon Linux, Oracle Linux, Scientific Linux is maintained by the file ‘/etc/localtime’. Let’s start the tutorial with CentOS/RHEL. There are different methods to change timezone in Linux based Linux distribution being used. Recommended Read: Introduction to Bash Scripting TutorialĪlso Read: Important PostgreSQL commands that every beginner should know In this tutorial, we are going to discuss how to change the timezone in Linux using command line. But we can also change the timezone once we have installed the operating system. When we install any Linux distribution, we can provide a timezone & time will be served based on that timezone.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |