Wednesday, 31 May 2017

How to Set Hardware Date and Time in linux

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

No comments:

Post a Comment

What is PS2 - Continuation Interactive Prompt in Linux

A very long command can be broken down to multiple lines by giving \ at the end of the line. The default interactive prompt for a multi-lin...