## Setting Up Time Zones in BASH

Ensuring that your account is configured to run with appropriate time zone information can make your life a lot easier.

Of course, if you administer your own system then you can simply set your system time to local time. However, it’s generally a better idea to set system time to Universal Time (UTC) and then configure time zone information on a per-user basis.

Why does this make sense? Well, suppose that you have remote users logging onto your system. It’s very likely that a remote user will be operating in a different time zone and it’d be handy for them to have system time converted into their local time.

There’s a handy utility for putting this in place: tzselect. It presents a couple of simple menus and then delivers a small chunk of code that you’d include in a user’s .profile file to ensure that their time zone is configured correctly.

Here’s an example of selecting the time zone for South Africa.

To configure my account with this time zone information, I’d simply add

to my .profile file. It would come into effect the next time I logged into the system.