Posts Tagged ‘timezone’
Change Date/Time & Timezone in Linux
I normally used to change the date & time of my Linux box using the following commands:
- Copy or create a symbolic link /etc/localtime to a file in the /usr/share/zoneinfo directory that corresponds with what timezone I am in
# cp /etc/localtime /etc/localtime.old (backup)
# cp /usr/share/zoneinfo/Asia/Singapore /etc/localtime - Use the rdate command for me to sync with Time Servers (e.g. time.nist.gov)
# rdate -s time-a.nist.gov
- And I set the date/time to the hardware clock
# /sbin/hwclock –systohc
- Now it’s sync up properly.

