Roberto C. Sánchez wrote:
On Sat, Jun 09, 2007 at 06:36:59PM +0100, andy wrote:Hi Roberto How do I find out what /etc/localtime links to? It is a binary file. There doesn't appear to be a config file, nor any man pages.Interesting. On one system of mine it is a binary file, yet on the other it is a symlink to /usr/share/zoneinfo/US/Eastern. Since you say that /etc/localtime is not a symlink, this little snippet will tell you which zoneinfo files it matches: ZONE_TMP_FILE=`mktemp` && find /usr/share/zoneinfo/ -type f -print0 |xargs -0 md5sum >>$ZONE_TMP_FILE && grep `md5sum /etc/localtime |cut -f1 -d\ ` $ZONE_TMP_FILE && rm -f $ZONE_TMP_FILE Just copy it and paste it at a bash prompt. Post the output here. Regards, -Roberto _ONE_TMP_FILE_=`mktemp` && find /usr/share/zoneinfo/ -type f -print0 |xargs -0 md5sum >>$ZONE_TMP_FILE && grep `md5sum /etc/localtime |cut -f1 -d\ ` $ZONE_TMP_FILE && rm -f $ZONE_TMP_FILE 4c9f9c5c5f86bcc5465c08831ef59e75 /usr/share/zoneinfo/posix/GB 4c9f9c5c5f86bcc5465c08831ef59e75 /usr/share/zoneinfo/posix/GB-Eire 4c9f9c5c5f86bcc5465c08831ef59e75 /usr/share/zoneinfo/posix/Europe/Belfast 4c9f9c5c5f86bcc5465c08831ef59e75 /usr/share/zoneinfo/posix/Europe/Jersey 4c9f9c5c5f86bcc5465c08831ef59e75 /usr/share/zoneinfo/posix/Europe/Guernsey 4c9f9c5c5f86bcc5465c08831ef59e75 /usr/share/zoneinfo/posix/Europe/London 4c9f9c5c5f86bcc5465c08831ef59e75 /usr/share/zoneinfo/posix/Europe/Isle_of_Man 4c9f9c5c5f86bcc5465c08831ef59e75 /usr/share/zoneinfo/GB 4c9f9c5c5f86bcc5465c08831ef59e75 /usr/share/zoneinfo/GB-Eire 4c9f9c5c5f86bcc5465c08831ef59e75 /usr/share/zoneinfo/Europe/Belfast 4c9f9c5c5f86bcc5465c08831ef59e75 /usr/share/zoneinfo/Europe/Jersey 4c9f9c5c5f86bcc5465c08831ef59e75 /usr/share/zoneinfo/Europe/Guernsey 4c9f9c5c5f86bcc5465c08831ef59e75 /usr/share/zoneinfo/Europe/London 4c9f9c5c5f86bcc5465c08831ef59e75 /usr/share/zoneinfo/Europe/Isle_of_Man -- "If they can get you asking the wrong questions, they don't have to worry about the answers." - Thomas Pynchon, "Gravity's Rainbow" |