Visit Jeremy's Blog.
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 03-09-2005, 09:55 AM   #1
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Rep: Reputation: 30
Time commands from command line

How do I check the system time and/or set it from the command line?

Got to the date command, but can't get it to set the time/date.

Last edited by ToothlessRebel; 03-09-2005 at 10:04 AM.
Old 03-09-2005, 10:52 AM   #2
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
you need to be root
date [MMDDhhmm[[CC]YY][.ss]]
MM = month
DD Day
hh hour
mm minute
cc century
yy year
ss seconds
for example
2005 march 9 10.14 am can be set as
date 030910142005.00
should set the date


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 the time in command line DJOtaku Linux - General 11 04-15-2005 11:41 AM
Using FTP to execute command line commands remotely steve_2010 Solaris / OpenSolaris 4 02-13-2004 08:44 AM
Clearly stated driver installation commands do not work from command line in terminal jayelitumbiolo Linux - Newbie 4 10-27-2003 12:52 AM
shell's command line locks after commands like ls tree_buddy Linux - Networking 17 09-15-2003 10:52 AM
altering the time at the command line vendemmian Linux - General 1 05-01-2001 06:44 AM > Forums > Linux Forums > Linux - Newbie

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