Friday, July 19, 2024
Linuxtechnology

Set or Change the Time Zone on Ubuntu 24.04 Using the “timedatectl” Command

50views

The “timedatectl” command is a part of systemd that lets you view the system’s time and manage it. You can use the “timedatectl” to change the time zone as well, as illustrated in the below steps:

Step 1: View Current Time Zone

Before changing the time zone, check the current time zone first using the following command:

				
					timedatectl
				
			

Step 2: List Time Zones

Now, list the time zones to choose from by executing the following command:

				
					timedatectl list-timezones
				
			

Additionally, you can list the time zone for a specific city, Seoul, as seen below:

				
					timedatectl list-timezones | grep -i seoul
				
			

Step 3: Set or Change the Time Zone on Ubuntu 24.04

Here, execute the below-mentioned commands to set or change the time zone (to Asia/Seoul in this case) on Ubuntu 24.04 and then verify the changes:

				
					timedatectl set-timezone Asia/Seoul
timedatectl
				
			

Leave a Response