• How to set the time in Linux

    Author
    Topic
    #412142

    I have an Alcatel PABX based on a Linux box – its getting the time wrong by three minutes so I need to set the time.
    Its years since I managed a Unix system – can anyone tell me off-hand what the command is for resetting the system time (or synching it to a network source?

    Viewing 5 reply threads
    Author
    Replies
    • #898808

      In a cron job, I use this:

      ntpdate -u timeserver

      if you have internet, just to test, try this:

      ntpdate -u timex.cs.columbia.edu

      Yoy may not need the -u. its for firewalls.

    • #898809

      In a cron job, I use this:

      ntpdate -u timeserver

      if you have internet, just to test, try this:

      ntpdate -u timex.cs.columbia.edu

      Yoy may not need the -u. its for firewalls.

    • #898810

      Also, here’s the manual date command if you don’t have net access

      date 07312316

      July 31, 11:16p

      or

      date 073123162004 if you need to change the year.

    • #898811

      Also, here’s the manual date command if you don’t have net access

      date 07312316

      July 31, 11:16p

      or

      date 073123162004 if you need to change the year.

    • #898812

      Sorry, you may want to find a local ntp server instead of the one I suggested. I just looked and we are from different sides of the planet.

      • #898816

        Mike
        Thanks for those full responses – they’ll get me on track.
        Andrew

      • #898817

        Mike
        Thanks for those full responses – they’ll get me on track.
        Andrew

    • #898813

      Sorry, you may want to find a local ntp server instead of the one I suggested. I just looked and we are from different sides of the planet.

    Viewing 5 reply threads
    Reply To: How to set the time in Linux

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: