Time zone settings in Linux

Let's learn how to do time and zone setting in Linux

Time zone settings in Linux

Photo by Agê Barros on Unsplash

AIM – To change the time zone setting in Linux System. The new time zone must be Asia/Kolkata.

  1. Check the OS distribution by

    cat /etc/os-release

  2. To check the date on the system use:

    date

  3. To see the current time zone use:

    timedatectl

  4. To see all the time zone in the system use:

    timedatectl list-timezones

  5. To see if the time zone of Asia/Kolkata is present in the system or not:

    timedatectl list-timezones | grep Asia/Kolkata

  6. To change the time zone into the time zone of Asia/Kolkata timedatectl set-timezone Asia/Kolkata

  7. Now check the time zone again using the command:

    date

  8. To see the changes that we just made:

    timedatectl status

  9. To change the time use:

    timedatectl set-time ‘2023-06-08 16:46’

  10. To sync the hardware clock with the system clock, use: timedatectl set-local-rtc 0