cd /usr/share/zoneinfo
find * -type f -exec sh -c "diff -q /etc/localtime '{}' > /dev/null && echo {}" \;
date +'%:z %Z'
I wanted to find the timezone in "US/Eastern" or "Europe/London" form instead. You can find this in:
- /etc/timezone (present on Ubuntu and Red Hat? but not e.g. Amazon Linux)
- (on Red Hat style systems) as
ZONE="US/Eastern"
in /etc/sysconfig/clock
http://superuser.com/questions/309034/how-to-check-which-timezone-in-linux
Sem comentários:
Enviar um comentário