usr/share/zoneinfo/Etc/UTCġ) You need to find the long name for the timezone before changing the timezone. 1 root root 03 September 11 09:25 /etc/localtime ->. You can also check the timezone by showing the path symlink points to using the ls command: ls -l /etc/localtime The below output shows that the system’s timezone is set to UTC: OutputĢ) The configuration of the system timezone is by done symlinking /etc/localtime to a binary timezone identifier in /usr/share/zoneinfo directory. It will help to display and set the current system’s time and timezone: timedatectl Step 1 - Checking the Current Timezoneġ) You can use timedatectl command in CentOS and other modern Linux distros. Prerequisitesġ) Make sure to log in as a root user with sudo privileges. In this tutorial, you will set or change the Timezone on CentOS 7. Using the correct timezone is necessary for systems-related tasks and processes like executing the cron jobs and timestamps in the log files are based on the system's timezone. On Ubuntu, the system’s timezone is set during the install and it is easily configurable later. Before we begin talking about the steps to set or change Timezone on CentOS 7, let's briefly understand - What is a Timezone?Ī Timezone is an area that has a uniform standard time for different purposes like legal, social and commercial.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |