Operating System - Linux
1827757 Members
3370 Online
109969 Solutions
New Discussion

Re: How do I set time clock on my Linux server?

 
SOLVED
Go to solution
Jorge Cocomess
Super Advisor

How do I set time clock on my Linux server?

I am currently running RHAS 3.0 and I would like to know how I go about setting the clock on my server at the command line.

Thank you in advance.
Jorge
4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: How do I set time clock on my Linux server?

As root, use the data command:

date MMDDHHMMYYYY.SS

For example

02 january 2007 13:14:00

date 010213142007.00

See man date.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Jorge Cocomess
Super Advisor

Re: How do I set time clock on my Linux server?

Once I updated the date & time, how can I synchronized with the hwclock time without a reboot?

Thanks for your response.

Jorge
Ivan Ferreira
Honored Contributor
Solution

Re: How do I set time clock on my Linux server?

See:

http://www.linuxsa.org.au/tips/time.html

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
James R. Ferguson
Acclaimed Contributor

Re: How do I set time clock on my Linux server?

Hi Jorge:

Have a look at the manpages for 'date' and for 'hwclock'.

Regards!

...JRF...