{"id":1651,"date":"2024-08-29T13:52:08","date_gmt":"2024-08-29T13:52:08","guid":{"rendered":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?p=1651"},"modified":"2024-09-03T06:37:12","modified_gmt":"2024-09-03T06:37:12","slug":"how-to-change-server-time-in-linux","status":"publish","type":"post","link":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html","title":{"rendered":"How to Change Server Time in Linux?"},"content":{"rendered":"\n<p>As a Linux server administrator, you must know how to change the system date and time and also modify time zones in Linux. This task is crucial as it helps maintain accurate timestamps for the proper functionality of applications and services.&nbsp;<\/p>\n\n\n\n<p>You might be involved in managing a personal project or overseeing a complete production environment; learning how to adjust the system clock in a Linux environment is important.&nbsp;<\/p>\n\n\n\n<p>In this knowledge base, we will discuss various processes, from setting the time manually to configuring your server to synchronize with network time servers using protocols like NTP (Network Time Protocol) or using a combination of commands and the command line to ensure your Linux system reflects the correct local time.<\/p>\n\n\n\n<p><hr>\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/412\/access-linux-server-using-putty-terminal.html\"><strong>How To Access Linux Server Using PuTTY SSH Terminal?<\/strong><\/a><\/p>\n<hr><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Ways to Change Server Time in Linux<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u27a2 <strong>Menu-Driven Selection of Time Zone<\/strong><\/h3>\n\n\n\n<p>The <strong style=\"font-family: 'Console', monospace !important;\">tzselect<\/strong> in Linux is an important utility that helps users choose a timezone from a selection of regions and cities. It generates a description of the selected timezone, which can be utilized as the value for the <strong>TZ<\/strong> environment variable.&nbsp;<\/p>\n\n\n\n<p>It is important to understand that <strong style=\"font-family: 'Console', monospace !important;\">tzselect<\/strong> does not permanently alter the system&#8217;s timezone. It has a short-term influence on the current shell session.&nbsp;<\/p>\n\n\n\n<p>If you wish to deploy permanent changes to the system timezone, you must use alternative methods like <strong style=\"font-family: 'Console', monospace !important;\">timedatectl<\/strong> or create <strong style=\"font-family: 'Console', monospace !important;\">symlinks<\/strong>.&nbsp;<\/p>\n\n\n\n<p><strong>Note:<\/strong> Towards the end of this prompt, you&#8217;ll find information explaining to you about making your <strong style=\"font-family: 'Console', monospace !important;\">tzselect<\/strong> choice persistent.<\/p>\n\n\n\n<p>\u2794 Let\u2019s run the command: <strong style=\"font-family: 'Console', monospace !important;\">tzselect<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"587\" height=\"239\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/run-the-command-tzselect.png\" alt=\"run the command tzselect\" class=\"wp-image-1652\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/run-the-command-tzselect.png 587w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/run-the-command-tzselect-300x122.png 300w\" sizes=\"auto, (max-width: 587px) 100vw, 587px\" \/><\/figure>\n<\/div>\n\n\n<p>\u2794 You can select <strong>8<\/strong> for the <strong style=\"font-family: 'Console', monospace !important;\">Indian Ocean<\/strong>, followed by selecting your country.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"452\" height=\"97\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/select-8-for-the-Indian-Ocean.png\" alt=\"select 8 for the Indian Ocean\" class=\"wp-image-1653\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/select-8-for-the-Indian-Ocean.png 452w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/select-8-for-the-Indian-Ocean-300x64.png 300w\" sizes=\"auto, (max-width: 452px) 100vw, 452px\" \/><\/figure>\n<\/div>\n\n\n<p>\u2794 Please select <strong style=\"font-family: 'Console', monospace !important;\">Country Number<\/strong> for <strong style=\"font-family: 'Console', monospace !important;\">Country Name<\/strong>&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"363\" height=\"92\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/select-Country-Number-for-Country-Name.png\" alt=\"select Country Number for Country Name\" class=\"wp-image-1654\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/select-Country-Number-for-Country-Name.png 363w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/select-Country-Number-for-Country-Name-300x76.png 300w\" sizes=\"auto, (max-width: 363px) 100vw, 363px\" \/><\/figure>\n<\/div>\n\n\n<p>\u2794 The next screen will show the chosen selection and prompt you to verify that the information is accurate.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"435\" height=\"115\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/verify-that-the-information-is-accurate.png\" alt=\"verify that the information is accurate\" class=\"wp-image-1655\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/verify-that-the-information-is-accurate.png 435w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/verify-that-the-information-is-accurate-300x79.png 300w\" sizes=\"auto, (max-width: 435px) 100vw, 435px\" \/><\/figure>\n<\/div>\n\n\n<p>\u2794 After confirmation, you can review the updated details on the next screen. This screen also offers instructions on how to make the change permanent by adding a line to the <strong style=\"font-family: 'Console', monospace !important;\">.profile file<\/strong> in your Home Directory.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"117\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/adding-a-line-to-the-.profile-file-in-your-Home-Directory.png\" alt=\"adding a line to the .profile file in your Home Directory\" class=\"wp-image-1656\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/adding-a-line-to-the-.profile-file-in-your-Home-Directory.png 622w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/adding-a-line-to-the-.profile-file-in-your-Home-Directory-300x56.png 300w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/figure>\n<\/div>\n\n\n<p><hr>\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/401\/how-to-create-sudo-user-in-linux.html\"><strong>How to Create a User in Linux &amp; Add it to the sudoer File?<\/strong><\/a><\/p>\n<hr><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u27a2 <strong>Using the timedatectl to change the Time Zone<\/strong><\/h3>\n\n\n\n<p>The <strong style=\"font-family: 'Console', monospace !important;\">timedatectl<\/strong> command-line utility enables you to view and modify the system&#8217;s time, date, and timezone. Additionally, it can synchronize the system clock with a remote server via the Network Time Protocol (NTP). <strong style=\"font-family: 'Console', monospace !important;\">timedatectl<\/strong> is an integral component of the <strong style=\"font-family: 'Console', monospace !important;\">Systemd<\/strong> system and service manager.<\/p>\n\n\n\n<p>Check out all available time zones. You can use the following command: <strong style=\"font-family: 'Console', monospace !important;\">timedatectl list-timezones<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"368\" height=\"384\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/Check-out-all-available-time-zones.png\" alt=\"Check out all available time zones\" class=\"wp-image-1657\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/Check-out-all-available-time-zones.png 368w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/Check-out-all-available-time-zones-288x300.png 288w\" sizes=\"auto, (max-width: 368px) 100vw, 368px\" \/><\/figure>\n<\/div>\n\n\n<p>Given the extensive list, you can use the command <strong style=\"font-family: 'Console', monospace !important;\">timedatectl list-timezones | grep IST<\/strong> to discover the IST value. It is easy to change IST to your preferred timezone. Your command can be like:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"421\" height=\"31\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/change-IST-to-your-preferred-timezone.png\" alt=\"change IST to your preferred timezone\" class=\"wp-image-1658\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/change-IST-to-your-preferred-timezone.png 421w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/change-IST-to-your-preferred-timezone-300x22.png 300w\" sizes=\"auto, (max-width: 421px) 100vw, 421px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Making changes to Region\/Location<\/strong><\/p>\n\n\n\n<p>You may use the command <strong style=\"font-family: 'Console', monospace !important;\">sudo timedatectl set-timezone Region\/Location<\/strong> to change the present Region\/Location to your preferred one.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u27a2 <strong>Manually Setting the Date and Time in Linux<\/strong><\/h3>\n\n\n\n<p>To set a new date and time manually in Linux, use the following syntax:<\/p>\n\n\n\n<p><strong style=\"font-family: 'Console', monospace !important;\">Date -s=&#8221;Date and time information\u201d<\/strong><\/p>\n\n\n\n<p><strong style=\"font-family: 'Console', monospace !important;\">date -s \u201c12 August 2024 08:46:00\u201d<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"375\" height=\"22\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/setting-Date-and-Time-in-Linux.png\" alt=\"setting Date and Time in Linux\" class=\"wp-image-1660\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/setting-Date-and-Time-in-Linux.png 375w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/setting-Date-and-Time-in-Linux-300x18.png 300w\" sizes=\"auto, (max-width: 375px) 100vw, 375px\" \/><\/figure>\n<\/div>\n\n\n<p><hr>\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/341\/What-if-I-Exceed-the-Bandwidth-Limit-that-I-am-Assigned-to-VPS.html\"><strong>What if I Exceed the Bandwidth Limit that I am Assigned to VPS?<\/strong><\/a><\/p>\n<hr><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u27a2 <strong>Modifying Timezone in Linux<\/strong><\/h3>\n\n\n\n<p>The file <strong style=\"font-family: 'Console', monospace !important;\"><em style=\"font-family: 'Console', monospace !important;\">\/etc\/localtime<\/em><\/strong> is responsible for setting the system-wide timezone for the local machine, which applications utilize. It should be represented as an absolute or relative symbolic link that points to <strong style=\"font-family: 'Console', monospace !important;\">\/usr\/share\/zoneinfo\/<\/strong>, followed by a specific timezone identifier, such as \u201cAsia\/Kolkata\u201d or \u201cEtc\/UTC.\u201d&nbsp;<\/p>\n\n\n\n<p><strong>Note:<\/strong> UTC is Coordinated Universal Time. India uses UTC+5:30, which is referred to as Asia\/Kolkata.<\/p>\n\n\n\n<p>The directory <strong style=\"font-family: 'Console', monospace !important;\">\/usr\/share\/zoneinfo<\/strong> houses files that provide information about various timezones. Each file is named after its corresponding timezone, such as \u201cAmerica\/New_York\u201d or \u201cAsia\/Kolkata.\u201d These files preserve details regarding timezone rules and the settings for Daylight Saving Time (DST) applicable to each specific timezone.<\/p>\n\n\n\n<p>Please check the contents of <strong style=\"font-family: 'Console', monospace !important;\">cat\/etc\/localtime<\/strong> from the following image.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"264\" height=\"49\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/check-the-contents-of-cat.png\" alt=\"check the contents of cat \" class=\"wp-image-1662\"\/><\/figure>\n<\/div>\n\n\n<p>Please check the contents of <strong style=\"font-family: 'Console', monospace !important;\">ls <\/strong>&nbsp;<strong style=\"font-family: 'Console', monospace !important;\">\/usr\/share\/zoneinfo<\/strong> from the following image.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"214\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/check-the-contents-of-ls.png\" alt=\"check the contents of ls\" class=\"wp-image-1663\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/check-the-contents-of-ls.png 586w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/check-the-contents-of-ls-300x110.png 300w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/figure>\n<\/div>\n\n\n<p>By creating this link, a file named \u201clocaltime\u201d will be generated in the directory from which you execute the command. Any other tool that you use to modify the timezone later on will be ineffective, as this link will override any other settings.&nbsp;<\/p>\n\n\n\n<p>To address this issue, you can simply remove the \u201c<em>localtime<\/em>\u201d link or file when necessary.&nbsp;<\/p>\n\n\n\n<p>Please use the following command.<\/p>\n\n\n\n<p><strong style=\"font-family: 'Console', monospace !important;\">ln -sf \/usr\/share\/zoneinfo\/Asia\/Kolkata localtime<\/strong><\/p>\n\n\n\n<p><strong style=\"font-family: 'Console', monospace !important;\">date<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"501\" height=\"50\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/Setting-the-Date-and-Time-in-Linux.png\" alt=\"Setting the Date and Time in Linux\" class=\"wp-image-1664\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/Setting-the-Date-and-Time-in-Linux.png 501w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/Setting-the-Date-and-Time-in-Linux-300x30.png 300w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/figure>\n<\/div>\n\n\n<p><hr>\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/232\/How-to-Check-if-My-Server-is-Under-DDoS-Attack.html\"><strong>How to Check if My Server is Under DDoS Attack<\/strong><\/a><\/p>\n<hr><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>As it is clearly visible from this knowledgebase, changing the server time in Linux is a straightforward process. This process is crucial for maintaining accurate system operations and ensuring proper scheduling of tasks.<\/p>\n\n\n\n<p>By utilizing commands such as <strong style=\"font-family: 'Console', monospace !important;\">timedatectl<\/strong> or manually adjusting the timezone file, administrators can effectively set the correct time and timezone for their systems. It&#8217;s essential to synchronize your server time with Network Time Protocol (NTP) servers to ensure continuous accuracy.&nbsp;<\/p>\n\n\n\n<p>Following the procedures mentioned in this blog will help you enhance system reliability and prevent issues related to data integrity and application performance.&nbsp;<\/p>\n\n\n\n<p>Administrators must regularly monitor and update server time settings for optimal server management in any Linux environment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a Linux server administrator, you must know how to change the system date and time and also modify time zones in Linux. This task is crucial as it helps maintain accurate timestamps for the proper functionality of applications and services.&nbsp; You might be involved in managing a personal project or overseeing a complete production [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[],"class_list":["post-1651","post","type-post","status-publish","format-standard","hentry","category-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Change Server Time in Linux?<\/title>\n<meta name=\"description\" content=\"This step-by-step guide teaches you how to change server time in Linux. It allows you to easily update your server\u2019s clock settings for accurate timekeeping.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Change Server Time in Linux?\" \/>\n<meta property=\"og:description\" content=\"This step-by-step guide teaches you how to change server time in Linux. It allows you to easily update your server\u2019s clock settings for accurate timekeeping.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html\" \/>\n<meta property=\"og:site_name\" content=\"Host IT Smart Knowledge base\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-29T13:52:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-03T06:37:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/run-the-command-tzselect.png\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html\",\"name\":\"How to Change Server Time in Linux?\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/run-the-command-tzselect.png\",\"datePublished\":\"2024-08-29T13:52:08+00:00\",\"dateModified\":\"2024-09-03T06:37:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108\"},\"description\":\"This step-by-step guide teaches you how to change server time in Linux. It allows you to easily update your server\u2019s clock settings for accurate timekeeping.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html#primaryimage\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/run-the-command-tzselect.png\",\"contentUrl\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/run-the-command-tzselect.png\",\"width\":587,\"height\":239},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/\",\"name\":\"Host IT Smart Knowledge base\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g\",\"caption\":\"Admin\"},\"sameAs\":[\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/\"],\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Change Server Time in Linux?","description":"This step-by-step guide teaches you how to change server time in Linux. It allows you to easily update your server\u2019s clock settings for accurate timekeeping.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html","og_locale":"en_US","og_type":"article","og_title":"How to Change Server Time in Linux?","og_description":"This step-by-step guide teaches you how to change server time in Linux. It allows you to easily update your server\u2019s clock settings for accurate timekeeping.","og_url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html","og_site_name":"Host IT Smart Knowledge base","article_published_time":"2024-08-29T13:52:08+00:00","article_modified_time":"2024-09-03T06:37:12+00:00","og_image":[{"url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/run-the-command-tzselect.png","type":"","width":"","height":""}],"author":"Admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Admin","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html","name":"How to Change Server Time in Linux?","isPartOf":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html#primaryimage"},"image":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html#primaryimage"},"thumbnailUrl":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/run-the-command-tzselect.png","datePublished":"2024-08-29T13:52:08+00:00","dateModified":"2024-09-03T06:37:12+00:00","author":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108"},"description":"This step-by-step guide teaches you how to change server time in Linux. It allows you to easily update your server\u2019s clock settings for accurate timekeeping.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html#primaryimage","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/run-the-command-tzselect.png","contentUrl":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2024\/08\/run-the-command-tzselect.png","width":587,"height":239},{"@type":"WebSite","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/","name":"Host IT Smart Knowledge base","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g","caption":"Admin"},"sameAs":["https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/"],"url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/1651","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1651"}],"version-history":[{"count":12,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/1651\/revisions"}],"predecessor-version":[{"id":1700,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/1651\/revisions\/1700"}],"wp:attachment":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}