Operating System - Linux
1826496 Members
3201 Online
109692 Solutions
New Discussion

How to change system time properly

 
Ezhilarasan
Occasional Advisor

How to change system time properly

Hi,

We found that our HP-UX m/c time is 5
minutes faster than actual time.
How to change system time properly ?
Can we use date command or need to use sam.
Do we have to reboot m/c ?
Please give me steps and commands.

Thanks
R. Ezhil
4 REPLIES 4
Balaji N
Honored Contributor

Re: How to change system time properly

first this is the linux forum.

u can use the date command or sam to set it. check the man pages. and, a reboot is not required.

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Sergejs Svitnevs
Honored Contributor

Re: How to change system time properly

man date.

Example:
Set the date to Mar 6, 13:16 p.m.

date 03061316.

No reboot after clock change.

Regards,
Sergejs
Sergejs Svitnevs
Honored Contributor

Re: How to change system time properly

man date.

Example:
Set the date to Mar 6, 13:16 p.m.

date 03061316
No reboot after clock change.

Regards,
Sergejs
Paul Sperry
Honored Contributor

Re: How to change system time properly

man date

or better yet if you have a time server edit
/etc/rc.config.d/netdaemons
export XNTPD=1

and

/etc/ntp.conf
server version 3 prefer

This will syncronize the time automatically.