Linux Server Install: Part 9

Laxfed Paulacy
2 min readJan 6, 2023

Watch the Clock and Check that Timezone, bruh.

Previous

Timezone

This is something you’ll rarely have to do, but go ahead and check anyway.

To check the current timezone on an Ubuntu system, you can use the timedatectl command:

timedatectl

This command will display the current time, date, and timezone information. The timezone will be displayed in the “Time zone” field.

Alternatively, you can check the timezone by looking at the contents of the /etc/timezone file:

cat /etc/timezone

This will output the timezone in a text format, such as America/New_York.

To list timezones, run:

timedatectl list-timezones

If you want to change the timezone to America/Chicago (for example) you could run:

sudo timedatectl set-timezone America/Chicago

That’s it!

Next

--

--

Laxfed Paulacy
Laxfed Paulacy

Written by Laxfed Paulacy

Delivering Fresh Recipes, Crypto News, Python Tips & Tricks, and Federal Government Shenanigans and Content.

No responses yet