
Setting the timezone on Ubuntu 24.04 allows you to ensure the correct system time for time-sensitive tasks such as log management, creating CronJobs, running applications, and user-specific tasks. A timezone determines the system's clock settings necessary to perform tasks at correct intervals.
This article explains how to set the timezone on Ubuntu 24.04. You will use the timedatectl utility to check and set the timezone to align with your region or application-specific needs.
Before you begin, you need to:
Check and verify the active timezone before changing the timezone on Ubuntu 24.04 to recover the initial configuration in case of any errors. timedatectl is a built-in utility that lets you view and manage timezones on Ubuntu. Follow the steps below to check the active timezone on your Ubuntu 24.04 workstation.
Check the active timezone and time synchronization status.
Output:
Based on the above output, Etc/UTC UTC (Coordinated Universal Time) is the active timezone and the primary time standard on Ubuntu. If the active timezone does not match your needs, follow the sections below to find all available time zones and change the timezone.
Follow the steps below to list all available timezones on Ubuntu 24.04.
Use the following command to display all available timezones:
Press Space to browse the list of available timezones in your output similar to the one below.
Run the following command to filter the output using the grep command to search for a specific timezone or location. For example, Bogota.
Output:
Follow the steps below to set the timezone on your Ubuntu 24.04 workstation.
Use the set-timezone option to specify a timezone to change on your system.
For example, run the following command to set the timezone to America/Bogota.
View the active timezone information and verify that the new change is applied.
Output:
Based on the above output, the active timezone is America/Bogota.
You have set the timezone on Ubuntu 24.04 using the timedatectl utility. Accurate timezone information ensures that your system applications and utilities use accurate time to perform specific tasks. You can synchronize your system clock with an NTP (Network Time Protocol) server to update the time depending on your needs. For more configuration options, run the man timedatectl command to view the timedatectl manual page.
0 Comments
Be the first to comment and share your perspective with the community.