LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-19-2004, 07:27 AM   #1
jjd228
Member
 
Registered: Jan 2004
Distribution: RedHat 9
Posts: 41

Rep: Reputation: 15
system time is wrong, how do i change?


yup... i cant figure out how to set the right time from the command line. also, will i need to set a timezone?
 
Old 02-19-2004, 07:34 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Use the date command.

man date for more details/options, etc.
 
Old 02-19-2004, 12:24 PM   #3
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
A long-term solution is to use ntp. Your machine checks with other time keepers out in the real world and automagically adjusts your time. This is fantastic for networks. One synchronizes with the Real World and the rest sync with that one.
 
Old 02-19-2004, 12:26 PM   #4
jjd228
Member
 
Registered: Jan 2004
Distribution: RedHat 9
Posts: 41

Original Poster
Rep: Reputation: 15
of course... i do this with all MS networks. but how exactly do i set this up on redhat 9. i need actual commands if anyone knows them. thank you
 
Old 02-19-2004, 12:41 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by jjd228
of course... i do this with all MS networks. but how exactly do i set this up on redhat 9. i need actual commands if anyone knows them. thank you
Which command as I've already given you one to use.. simply date will change your time and date, etc??
 
Old 02-19-2004, 12:55 PM   #6
jjd228
Member
 
Registered: Jan 2004
Distribution: RedHat 9
Posts: 41

Original Poster
Rep: Reputation: 15
well not really... date requires a whole long string be passed to it and im not sure of the formatting of the string. as far as enabling NTP.... i have no idea wither
 
Old 02-19-2004, 01:52 PM   #7
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
Try:

netdate time.nist.gov
 
Old 02-19-2004, 01:55 PM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by jjd228
well not really... date requires a whole long string be passed to it and im not sure of the formatting of the string. as far as enabling NTP.... i have no idea wither
So reading the man page provides no details for you then.. hmm.. seems to provide them to me when I read it..
 
Old 02-19-2004, 04:12 PM   #9
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
[pogson@nifty pogson]$ rpm -q --whatprovides --info ntp
ntp-4.1.2-0.rc1.2
Name : ntp Relocations: (not relocateable)
Version : 4.1.2 Vendor: Red Hat, Inc.
Release : 0.rc1.2 Build Date: Thu 13 Feb 2003 11:17:29 AM CST
Install Date: Thu 06 Nov 2003 09:50:06 PM CST Build Host: porky.devel.redhat.com
Group : System Environment/Daemons Source RPM: ntp-4.1.2-0.rc1.2.src.rpm
Size : 2218704 License: distributable
Signature : DSA/SHA1, Mon 24 Feb 2003 12:38:43 AM CST, Key ID 219180cddb42a60ePackager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://www.ntp.org
Summary : Synchronizes system time using the Network Time Protocol (NTP).
Description :
The Network Time Protocol (NTP) is used to synchronize a computer's
time with another reference time source. The ntp package contains
utilities and daemons that will synchronize your computer's time to
Coordinated Universal Time (UTC) via the NTP protocol and NTP servers.
The ntp package includes ntpdate (a program for retrieving the date
and time from remote machines via a network) and ntpd (a daemon which
continuously adjusts system time).

Install the ntp package if you need tools for keeping your system's
time synchronized via the NTP protocol.

If you look in your CDs you should find it or via http://rpmfind.net
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 09:58 PM
system time wrong after running cdrecord-prodvd whysyn Linux - Software 8 01-11-2005 09:19 AM
Setting System Time: kernel in wrong time zone warrenweiss Linux - General 7 05-15-2004 03:25 PM
Change system time JonCooperUK Slackware 4 04-02-2004 09:41 PM
system time wrong acid_kewpie Linux - General 4 02-23-2002 09:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration