How to verify time zone change?

To verify the time zone change in Linux, you can use the timedatectl command. Here’s how to do it:

  1. Check Current Time and Time Zone:
    Run the following command:

    timedatectl

    This will display information about the current system time, local time, universal time (UTC), and the time zone. Look for the "Time zone" line to confirm that it reflects the new time zone you set.

  2. Display Current Date and Time:
    You can also use the date command to see the current date and time along with the time zone:

    date

    This will show the current date and time, including the time zone abbreviation.

By using these commands, you can ensure that the time zone has been updated correctly.

0 Comments

no data
Be the first to share your comment!