LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-31-2004, 02:39 PM   #1
servnov
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2
Posts: 276

Rep: Reputation: 30
how to change system time? date cmd?


I need to change the system time on a slackware system. I guess my main problem is how to reset it with the 'date' command...i can't figure out how to form a 'valid string'. Is there another way besides the date command too?
 
Old 10-31-2004, 03:14 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
To get a valid format look at the output of it.

Alternatively you could try using ntpdate and
sync against an internet - machine with the
right time and date :)


Cheers,
Tink
 
Old 10-31-2004, 04:07 PM   #3
servnov
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2
Posts: 276

Original Poster
Rep: Reputation: 30
thanks. I found I could just simply do date -s 12:34:45 or whatever the time is. I was trying to enter the MMddHHmm.ss i saw in the man page so i would do 10311234.45... (oct 31..)

oh well, the date was already 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
Is there an interactive way to change date/time from commandline? Akhran Linux - Newbie 1 10-14-2005 12:18 AM
Changing system date and time from KDE yapp Linux - General 4 04-17-2005 04:40 AM
Change system time or date or both lel800 Linux - Newbie 6 10-28-2003 08:00 PM
how to change date and time in slackware 8.1 erikm103 Linux - Newbie 4 02-25-2003 07:26 PM
how do you change the date / time? jkane Linux - General 2 01-15-2002 10:09 PM

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

All times are GMT -5. The time now is 12:40 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