Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

4 Answers 4

up vote 30 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

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

Best example 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 man-page for more setting and furter information.

share|improve this answer

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.