To verify the time zone change in Linux, you can use the timedatectl command. Here’s how to do it:
-
Check Current Time and Time Zone:
Run the following command:timedatectlThis 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.
-
Display Current Date and Time:
You can also use thedatecommand to see the current date and time along with the time zone:dateThis 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.
