<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>how to change time zone in centos 8 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/how-to-change-time-zone-in-centos-8/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 26 Dec 2019 23:41:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Change Time Zone in CentOS 8 / RHEL 8</title>
		<link>https://www.osradar.com/how-to-change-time-zone-in-centos-8-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-change-time-zone-in-centos-8-rhel-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Fri, 03 Jan 2020 00:12:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[change time zone]]></category>
		<category><![CDATA[how to change time zone in centos 8]]></category>
		<category><![CDATA[linux time zone changing]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16994</guid>

					<description><![CDATA[<p>Time zone can be set while Installing your system but many times you choose the default time zone or the wrong one. In this guide, you will learn that how you can change the time zone after the Installation of your Operating System. Follow the steps to easily change your time zone on CentOS 8 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-change-time-zone-in-centos-8-rhel-8/">How To Change Time Zone in CentOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Time zone can be set while Installing your system but many times you choose the default time zone or the wrong one. In this guide,  you will learn that how you can change the time zone after the Installation of your Operating System. Follow the steps to easily change your time zone on CentOS 8 / RHEL 8</p>



<h3><strong>Changing Time Zone in CentOS 8 / RHEL 8</strong></h3>



<p>There are two methods that can be used to change the time zone in your CentOS 8 system.</p>



<ul><li><strong>By using Timedatectl Command</strong></li><li><strong>By using /etc/localtime file</strong></li></ul>



<p>We will look over both methods to change time zone on our CentOS system.</p>



<h3><strong>Using timedatectl command</strong></h3>



<p>Check the current time zone by typing <strong>date</strong> in your Terminal</p>



<pre class="wp-block-verse">[sabi@localhost ~]$ date<br>Mon Dec 23 05:40:27 EST 2019</pre>



<p>First, list the available time zone by typing the below command in your terminal.</p>



<pre class="wp-block-verse">timedatectl list-timezones</pre>



<p>Output will list all available Time zones like</p>



<pre class="wp-block-verse">Africa/Abidjan<br> Africa/Accra<br> Africa/Addis_Ababa<br> Africa/Algiers<br> Africa/Asmara<br> Africa/Bamako<br> Africa/Bangui<br> Africa/Banjul<br> Africa/Bissau<br> Africa/Blantyre<br> Africa/Brazzaville<br> Africa/Bujumbura<br> Africa/Cairo<br> Africa/Casablanca<br> Africa/Ceuta<br> Africa/Conakry<br> Africa/Dakar<br> Africa/Dar_es_Salaam<br> Africa/Djibouti<br> Africa/Douala<br> Africa/El_Aaiun<br> Africa/Freetown<br> Africa/Gaborone<br> Africa/Harare<br> Africa/Johannesburg<br> Africa/Juba<br> Africa/Kampala<br> Africa/Khartoum<br> Africa/Kigali<br> Africa/Kinshasa<br> Africa/Lagos<br> Africa/Libreville<br> Africa/Lome<br> Africa/Luanda<br> Africa/Lubumbashi<br> Africa/Lusaka<br> Africa/Malabo</pre>



<p>Now, choose the desire one which you want to set up on your CentOS system. You can also filter the time zone for your cities by running</p>



<pre class="wp-block-verse">timedatectl list-timezones | grep -i chicago</pre>



<p><strong>Output:</strong></p>



<pre class="wp-block-verse">Africa/Accra</pre>



<p>In my case I&#8217;m setting to <strong>Africa/Accra</strong>.</p>



<pre class="wp-block-verse">timedatectl set-timezone Africa/Accra</pre>



<p>You can verify the time zone by running</p>



<pre class="wp-block-verse">date</pre>



<p><strong>Output:</strong></p>



<pre class="wp-block-verse">[sabi@localhost ~]$ date<br> Mon Dec 23 10:46:27 GMT 2019</pre>



<h2><strong>Using /etc/localtime file</strong></h2>



<p>We can also set the time zone by the local time file. We&#8217;ll change the time zone from GMT to EST. Use the date command to see the current time zone.</p>



<pre class="wp-block-verse">date</pre>



<p><strong>Output:</strong></p>



<pre class="wp-block-verse"> [sabi@localhost ~]$ date<br> Mon Dec 23 10:46:27 GMT 2019 </pre>



<p>here you can see that my system is Configured with Greenwich Mean Time (GMT)</p>



<p>Now, use ls command to list the all time zones in <strong>/usr/share/zoneinfo/</strong>. You can also navigate to the country specific directory like <strong>/usr/share/zoneinfo/Africa</strong> directory would contain the Africa Time Zone.</p>



<pre class="wp-block-verse">[sabi@localhost ~]$ ls /usr/share/zoneinfo/Africa<br> Abidjan      Bissau       Dar_es_Salaam  Kampala     Lusaka     Niamey<br> Accra        Blantyre     Djibouti       Khartoum    Malabo     Nouakchott<br> Addis_Ababa  Brazzaville  Douala         Kigali      Maputo     Ouagadougou<br> Algiers      Bujumbura    El_Aaiun       Kinshasa    Maseru     Porto-Novo<br> Asmara       Cairo        Freetown       Lagos       Mbabane    Sao_Tome<br> Asmera       Casablanca   Gaborone       Libreville  Mogadishu  Timbuktu<br> Bamako       Ceuta        Harare         Lome        Monrovia   Tripoli<br> Bangui       Conakry      Johannesburg   Luanda      Nairobi    Tunis<br> Banjul       Dakar        Juba           Lubumbashi  Ndjamena   Windhoek</pre>



<p>Create a link with the time zone you want to use. I&#8217;m using for CST ( Central Standard Time)</p>



<pre class="wp-block-verse">ln -sf /usr/share/zoneinfo/US/Eastern /etc/localtime</pre>



<p>OR</p>



<pre class="wp-block-verse">ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime</pre>



<p>After setting up, verify the changes</p>



<pre class="wp-block-verse">date</pre>



<p><strong>Output:</strong></p>



<pre class="wp-block-preformatted">[sabi@localhost ~]$ date
 Mon Dec 23 10:46:27 CST 2019</pre>



<p>So in this way, you can change time zone in CentOS 8 / RHEL 8.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-change-time-zone-in-centos-8-rhel-8/">How To Change Time Zone in CentOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-change-time-zone-in-centos-8-rhel-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
