Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can one change the time-zone in Ubuntu 10.04 or 11.04 server from the command line without user input (e.g. tzconfig EST).

While one would use dpkg-reconfigure tzdata, per the related question How to change the time-zone settings from the command line, with user interaction, I can't seem to find out how to change the time-zone from within a non-interactive a script.

The solution is meant to be part of an installation script that configures a server.

Thank you for reading.

share|improve this question

Create a link to /etc/localtime

ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime

Just replace /America/Los_Angeles with your zone.

share|improve this answer
/etc/localtime is a copy of the timezone file, found in /usr/share/zoneinfo/ – user4124 May 9 '11 at 23:52
This looks like a really weird way of setting the time, but that's what tzconfig does internally, so I guess it's correct. – mpen Feb 21 '14 at 5:38

Goto Systems > Administration > Time and Date.

Then press the padlock icon beside "Click to make changes", enter your password to authenticate, now you can change your Time Zone.

enter image description here

enter image description here

enter image description here

share|improve this answer
Nice pictures, but I think you have misread the question. Thank you for your post, albeit not answering the question. :) – Brian M. Hunt May 10 '11 at 1:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.