{"id":480,"date":"2020-08-18T10:21:58","date_gmt":"2020-08-18T17:21:58","guid":{"rendered":"https:\/\/blog.iabsolute.com\/?p=480"},"modified":"2020-08-18T10:21:58","modified_gmt":"2020-08-18T17:21:58","slug":"change-the-time-zone-ubuntu","status":"publish","type":"post","link":"https:\/\/blog.iabsolute.com\/?p=480","title":{"rendered":"Change the Time Zone ubuntu"},"content":{"rendered":"\n<p>Open the Terminal and enter the following command in order to list all the timezones of the specified zone:<\/p>\n\n\n\n<p>Syntax:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ timedatectl list-timezones | grep -i [zone]<\/pre>\n\n\n\n<p>Example:<\/p>\n\n\n\n<p>We will use this command to list all the time zones of Europe:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ timedatectl list-timezones | grep -i europe<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/vitux.com\/wp-content\/uploads\/2018\/09\/word-image-216.png\" alt=\"Get a list of available time zones\" class=\"wp-image-1803\"\/><\/figure><\/div>\n\n\n\n<p>In this example, we will be setting the time zone to Europe\/Istanbul. First, let us unlink the system time with local time through the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo unlink \/etc\/localtime<\/pre>\n\n\n\n<p>The next step is to use the following command to set a new time zone:<\/p>\n\n\n\n<p>Syntax:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo ln -s \/usr\/share\/zoneinfo\/[Zone\/TimeZone] \/etc\/localtime<\/pre>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo ln -s \/usr\/share\/zoneinfo\/Europe\/Istanbul \/etc\/localtime<\/pre>\n\n\n\n<p>You can then verify the changed settings through one of the following commands:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/vitux.com\/wp-content\/uploads\/2018\/09\/word-image-217.png\" alt=\"Verify timezone change\" class=\"wp-image-1804\"\/><\/figure><\/div>\n\n\n\n<pre class=\"wp-block-preformatted\">$ timedatectl<\/pre>\n\n\n\n<p>or<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ ls -l \/etc\/localtime<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Open the Terminal and enter the following command in order to list all the timezones of the specified zone: Syntax: $ timedatectl list-timezones | grep -i [zone] Example: We will use this command to list all the time zones of &hellip; <a href=\"https:\/\/blog.iabsolute.com\/?p=480\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,2,3],"tags":[],"class_list":["post-480","post","type-post","status-publish","format-standard","hentry","category-command-line-my-linux","category-my-linux","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=480"}],"version-history":[{"count":1,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/480\/revisions"}],"predecessor-version":[{"id":481,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/480\/revisions\/481"}],"wp:attachment":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}