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 to display the current time configuration like time zone in Ubuntu?

share|improve this question
What does the CentOS output for cat /etc/sysconfig/clock look like ? – belacqua Feb 22 '11 at 17:25
like this [root@SUPA9611 ~]# cat /etc/sysconfig/clock ZONE="Europe/Amsterdam" UTC=true ARC=false – usef_ksa Feb 22 '11 at 18:24
up vote 51 down vote accepted

I don't know of a single file, but this may give you the info needed:

cat /etc/timezone
grep UTC /etc/default/rcS
# hardware clock
sudo hwclock --show
share|improve this answer
thanks man.. it works – usef_ksa Feb 22 '11 at 18:55
I didn't spot the hwclock bit at first - but that was actually what I was looking for – icc97 Jan 7 at 20:06

Best example (IMHO) using timedatectl (in command-line/terminal):

$ timedatectl
      Local time: Thu 2014-07-24 19:51:23 IST
  Universal time: Thu 2014-07-24 14:21:23 UTC
        Timezone: Asia/Kolkata (IST, +0530)
     NTP enabled: no
NTP synchronized: no
 RTC in local TZ: no
      DST active: n/a

Visit the manpage for more settings and further information.

share|improve this answer
If your system is missing timedatectl: – Abdull Dec 18 '15 at 11:25

Check out info date, and for example date +'%z'

share|improve this answer
did not work! the output is like man date – usef_ksa Feb 22 '11 at 18:25

If you need a formatted Area ans Zone you can use:

$ grep `date +%Z` /etc/timezone 
share|improve this answer

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.