Ubuntu: Check and Change timezone using CLI

Ubuntu: Check and Change timezone using CLI

April 18, 2025 Linux Linux Server System Administration Tips & Problems 0

🕒 Timezones in Linux

✅ Check the Current Timezone

To view the current system timezone, use:

timedatectl

This will show output including the current timezone, local time, and system clock settings.


🌍 Change the Timezone

To set a new timezone (e.g., Europe/Amsterdam), run:

sudo timedatectl set-timezone Europe/Amsterdam

You can replace Europe/Amsterdam with any valid timezone.


🔍 List Available Timezones

To see all available timezones:

timedatectl list-timezones

You can scroll through the list or use grep to search:

timedatectl list-timezones | grep Europe