This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to set date and time under command line

Someone can tell me the commands to set date and time under command line ?


This thread was automatically locked due to age.
Parents
  • Just setup a NTP server in the webmin.

    (the unix command is 'date', but it's a pain, and won't set the hardware clock. IIRC, 'clock' will.)

    Barry
  • How would one do this if you want ntp pointed at a pool of servers such as 0.pool.ntp.org?

    If you define a definition it wants a name/IP match, but you don't necessarily have an IP match because it's a pool of machines.
  • Just set the NTP server to use an address like "us.pool.ntp.org".  The DNS resolution will take care of the round-robin resolving like it should.  It works, I use it on mine.
  • [ QUOTE ]
    How would one do this if you want ntp pointed at a pool of servers such as 0.pool.ntp.org?

    If you define a definition it wants a name/IP match, but you don't necessarily have an IP match because it's a pool of machines. 

    [/ QUOTE ]

    Actually - to directly answer your question - create a DNS hostname instead of a host.  That will let you put a hostname in the definition box.
Reply
  • [ QUOTE ]
    How would one do this if you want ntp pointed at a pool of servers such as 0.pool.ntp.org?

    If you define a definition it wants a name/IP match, but you don't necessarily have an IP match because it's a pool of machines. 

    [/ QUOTE ]

    Actually - to directly answer your question - create a DNS hostname instead of a host.  That will let you put a hostname in the definition box.
Children