How to change Date, Time and Time Zone in Linux

In Redhat based distro, here’s a quick solution to change your time zone to PST/PDT:

# mv /etc/localtime /etc/localtime.Old && ln -s /usr/share/zoneinfo/PST8PDT /etc/localtime

Other commands:

Change Time zone to IST:

# mv /etc/localtime /etc/localtime.Old && ln -s /usr/share/zoneinfo/Asia/Calcutta /etc/localtime

Set the TZ environment variable for quick display time according to preferred Time Zone:

# export TZ=America/Los_Angeles
# date

If you have the utility rdate, update the current system time by executing

# rdate -s pool.ntp.org

You can execute ‘system-config-date’ for setting up date/time and time zone

# system-config-date

If you’re using Ubuntu, tzconfig is there for you:

# tzconfig

Bookmark and Share

One Response to “How to change Date, Time and Time Zone in Linux”

  1. Great I have read your article and by the way I found you website on Yahoo and I think after I read particularpost on you website especially this one I have my own comment about what should I comment on the next meeting with my girl friend, maybe tomorrow I will tell my familyabout this one and get debate.

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes