LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-20-2001, 01:57 PM   #1
bughunter
LQ Newbie
 
Registered: Apr 2001
Posts: 5

Rep: Reputation: 0
Setting the time


How do I set the current time?

Oddly enough, I can't find out how to do this simple thing in any of the man files or forums.
 
Old 04-20-2001, 03:29 PM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 12,463

Rep: Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341Reputation: 3341
You can set the system time using the date command. You could also use ntpd to set it for you.
 
Old 04-20-2001, 04:02 PM   #3
bughunter
LQ Newbie
 
Registered: Apr 2001
Posts: 5

Original Poster
Rep: Reputation: 0
setting the time

Thanks, Jeremy.

For future reference (any other newbies) you can type "man date" to see more about parameters.

The syntax I used was:

date MMDDHHmmYYYY.SS

for example: "date 042017012001.00" sets a time of April 20, 2001 5:01:00 pm (remember that it uses military time)

Then type "date" to verify it's correct.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting system time to UTC triley Linux - General 2 08-25-2009 08:56 PM
Im setting up a dual boot system for first time completenumpty Linux - Software 3 04-19-2005 09:45 AM
System time setting listensea Mandriva 4 05-16-2004 01:30 AM
Setting System Time: kernel in wrong time zone warrenweiss Linux - General 7 05-15-2004 04:25 PM
Help -- Setting System time by C/C++ eg_wwkaa Programming 1 09-20-2003 02:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration