Hack 8. Set Hardware Date and Time Using hwclock
by Ramesh
Before setting the hardware date and time, make sure the OS date and time is set appropriately as shown in the hack#7.
Set the hardware date and time based on the system date as shown below:
- # hwclock –systohc
- # hwclock --systohc –utc
Use hwclock without any parameter, to view the current hardware date and time:
- # hwclock
Check the clock file to verify whether the system is set for UTC:
- # cat /etc/sysconfig/clock
- ZONE="America/Los_Angeles"
- UTC=false
- ARC=false
当前内容版权归 Ramesh Natarajan 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Ramesh Natarajan .