LinuxQuestions.org
Register a domain and help support LQ
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-03-2006, 01:01 PM   #1
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Rep: Reputation: 30
Setting date


How do i change the date using threw shell?

well if i can sync the time

Last edited by namit; 04-03-2006 at 01:06 PM.
 
Old 04-03-2006, 01:07 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
date [MMDDhhmm[[CC]YY][.ss]]

MM = Month
DD = Day
hh = Hour
mm = Minute
CC = Century
YY = Year
ss = seconds

April 3rd 1:07 PM

debian:/etc/init.d# date 04031307

Mon Apr 3 13:07:00 EDT 2006

Last edited by farslayer; 04-03-2006 at 01:08 PM.
 
Old 04-03-2006, 01:09 PM   #3
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Original Poster
Rep: Reputation: 30
can you sync time with some other server?
 
Old 04-04-2006, 12:02 AM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
absolutely.. ntpdate is what you want to look at for that..

http://publib.boulder.ibm.com/infoce...s4/ntpdate.htm
 
  


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 time and date? maginotjr Slackware 7 06-28-2005 09:53 AM
setting date and time lynger Linux - Software 2 05-21-2004 01:10 AM
setting time and date trpn Linux - Software 5 11-07-2003 08:48 AM
Setting Date and Time prich Linux - Newbie 3 12-16-2002 03:28 PM
setting the date Nyc0n Linux - General 2 05-24-2002 03:56 AM


All times are GMT -5. The time now is 04:50 AM.

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