{"id":15642,"date":"2022-02-28T19:36:13","date_gmt":"2022-02-28T19:36:13","guid":{"rendered":"https:\/\/linuxways.net\/?p=15642"},"modified":"2022-02-28T19:36:13","modified_gmt":"2022-02-28T19:36:13","slug":"how-to-set-the-time-zone-in-debian-11","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-set-the-time-zone-in-debian-11\/","title":{"rendered":"How to Set the Time zone in Debian 11"},"content":{"rendered":"<p>Most users aren&#8217;t familiar with how to change the time zone on the Linux system. When a new Linux distribution installs on the system, it automatically sets the system time zone during the installation. However, if you need to change the system local time due to any reason, then you can easily do it.<\/p>\n<p>We will show in this tutorial how to set the time zone of your system in Debian 11 bullseye distribution using different methods.<\/p>\n<p>The Debian 11 bullseye distribution allows you to set your system time zone using the following two different methods:<\/p>\n<ol>\n<li>Set time zone using the graphical environment<\/li>\n<li>Set time zone using command line or terminal<\/li>\n<\/ol>\n<h2>Method 1: Set Time Zone using GUI<\/h2>\n<p>You need to access the system Time Zone setting to change the time zone in Debian 11 distribution. To access the time zone setting in the Debian 11 system, click on the \u2018Activities\u2019. Now, type the \u2018date &amp; time\u2019 in the search bar.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"797\" height=\"394\" class=\"wp-image-15643\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-721.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-721.png 797w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-721-300x148.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-721-768x380.png 768w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><\/p>\n<p>Click on the displaying \u2018date &amp; time\u2019 settings. The following window appears on the desktop:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"794\" height=\"557\" class=\"wp-image-15644\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-722.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-722.png 794w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-722-300x210.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-722-768x539.png 768w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><\/p>\n<p>In the above screenshot, you can easily locate the \u2018Time Zone\u2019 option.<\/p>\n<p>Click on the time zone and the following window displays on the desktop:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"794\" height=\"520\" class=\"wp-image-15645\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-723.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-723.png 794w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-723-300x196.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-723-768x503.png 768w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><\/p>\n<p>Now, in the search bar, search for a particular state or location and press \u2018Enter\u2019. It will automatically set your Debian 11 system time zone according to the desired search location.<\/p>\n<h2>Method 2: Set Time Zone using command line or terminal<\/h2>\n<p>An alternative method using terminal or command-line is also available to set the time zone of Debian 11 distribution. Open the Terminal application from the application menu.<\/p>\n<h3>Use timedatectl utility to display the Current Time Zone<\/h3>\n<p>The \u2018timedatectl\u2019 utility helps you to display the current time zone information of your system. Almost in all modern Linux distributions, the timedatectl utility is available by default. Display the current time zone information by using the following command:<\/p>\n<pre>$ timedatectl<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"166\" class=\"wp-image-15646\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-724.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-724.png 723w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-724-300x69.png 300w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/p>\n<p>You can find your time zone configuration by using the following symlink path those points to a particular directory:<\/p>\n<pre>$ ls -l \/etc\/localtime<\/pre>\n<h3>Set time zone in Debian 11 bullseye<\/h3>\n<p>To set the time zone in Debian 11, display the list of the time zone of all countries.<\/p>\n<pre>$ timedatectl list-timezones<\/pre>\n<p>The time zone list of all world displays on the terminal.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"725\" height=\"440\" class=\"wp-image-15647\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-725.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-725.png 725w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-725-300x182.png 300w\" sizes=\"auto, (max-width: 725px) 100vw, 725px\" \/><\/p>\n<p>To set a new time zone, unlink the previous local system time by using the following command:<\/p>\n<pre>$ sudo unlink \/etc\/localtime<\/pre>\n<p>Now, using the following command set the new time zone for your Debian 11 system:<\/p>\n<pre>$ sudo timedatectl set-timezone Asia\/Karachi<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"725\" height=\"185\" class=\"wp-image-15648\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-726.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-726.png 725w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-726-300x77.png 300w\" sizes=\"auto, (max-width: 725px) 100vw, 725px\" \/><\/p>\n<p>Create the symlink of the local time zone by using the below-mentioned command:<\/p>\n<pre>$ sudo ln -s \/usr\/share\/zoneinfo\/Asia\/Karachi \/etc\/localtime<\/pre>\n<p>If you will see your system time zone, it has been set to Asia\/Karachi.<\/p>\n<h2>Conclusion<\/h2>\n<p>We learned how to set the time zone in Debian 11 bullseye distribution. Both methods are provided in this article set time zone using GUI as well as using terminal via timedatectl utility. Changing the time zone is such a simple and easy method. We suggest you try the above method on your Linux system. Thanks!<\/p>","protected":false},"excerpt":{"rendered":"<p>Most users aren&#8217;t familiar with how to change the time zone on the Linux system. When a new Linux distribution installs on the system, it automatically sets the&hellip;<\/p>","protected":false},"author":1,"featured_media":15874,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[521,113],"class_list":["post-15642","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","tag-debian-11","tag-timezone"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/15642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=15642"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/15642\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/15874"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=15642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=15642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=15642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}