Results 1 to 5 of 5
  1. #1
    5 Star Lounger
    Join Date
    Oct 2002
    Location
    Wellington, Wellington, New Zealand
    Posts
    621
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to set the time in Linux

    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?

  2. #2
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Newark, New Jersey, USA
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to set the time in Linux

    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.
    Mike Wolfman
    Jack of all, Master of none
    Bow before me, for I am root.
    <IMG SRC=http://www.wopr.com/w3tfiles/112673-wolfsig.jpg>

  3. #3
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Newark, New Jersey, USA
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to set the time in Linux

    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.
    Mike Wolfman
    Jack of all, Master of none
    Bow before me, for I am root.
    <IMG SRC=http://www.wopr.com/w3tfiles/112673-wolfsig.jpg>

  4. #4
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Newark, New Jersey, USA
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to set the time in Linux

    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.
    Mike Wolfman
    Jack of all, Master of none
    Bow before me, for I am root.
    <IMG SRC=http://www.wopr.com/w3tfiles/112673-wolfsig.jpg>

  5. #5
    5 Star Lounger
    Join Date
    Oct 2002
    Location
    Wellington, Wellington, New Zealand
    Posts
    621
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How to set the time in Linux

    Mike
    Thanks for those full responses - they'll get me on track.
    Andrew

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •