How to Change Your Time Zone in Linux in 2 Steps
When you run the date command in your Linux machine, the output will show the day, date, time, and time zone. But if it is your first time setting your Linux machine up, the time zone in the output may not match your time zone.
vagrant@ubuntu-focal:~$ date
Sun Sep 4 11:39:46 UTC 2022
vagrant@ubuntu-focal:~$
Linux’s default time zone is UTC (Universal Time Coordinated or Coordinated Universal Time). But if you want, you can change the time zone to match yours by doing the following: