Changing Timezone and Updating the Time

  1. Log in as root
  2. To check the current time use the ‘date’ command.
  3. Go to the directory /usr/share/zoneinfo. It will give you a list of all available time zones. Choose the most appropriate for your area.
  4. I usually like backups, so backup the previous timezone configuration by copying it to a different location, `mv /etc/localtime /etc/localtime-backup`.
  5. Create a symbolic link from the appropiate timezone to /etc/localtime. Example: `ln -s /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime`.
  6. If you have the utility rdate, update the current system time by executing `/usr/bin/rdate -s`.
  7. Set the ZONE entry in the file /etc/sysconfig/clock file (e.g. “America/Los_Angeles”)
  8. Set the hardware clock by executing: ` /sbin/hwclock –systohc`

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: