Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-31-2004, 01:39 PM   #1
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, 02:14 PM   #2
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926
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 :)

Old 10-31-2004, 03:07 PM   #3
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 i saw in the man page so i would do 10311234.45... (oct 31..)

oh well, the date was already correct


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-13-2005 11:18 PM
Changing system date and time from KDE yapp Linux - General 4 04-17-2005 03:40 AM
Change system time or date or both lel800 Linux - Newbie 6 10-28-2003 07:00 PM
how to change date and time in slackware 8.1 erikm103 Linux - Newbie 4 02-25-2003 06:26 PM
how do you change the date / time? jkane Linux - General 2 01-15-2002 09:09 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:38 AM.

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