LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-10-2011, 06:03 AM   #1
dijonez@gmail.com
LQ Newbie
 
Registered: Oct 2011
Posts: 1

Rep: Reputation: Disabled
Linux RedHat: How to change system date/time?


What is the correct formatted command syntax needed to issue
in order to change the system date/time OS=Linux RedHat?

Last edited by dijonez@gmail.com; 10-10-2011 at 06:05 AM.
 
Old 10-10-2011, 07:05 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Hello,

Run the following:
Code:
man date
And read.
As an example:
Code:
date -s "10 OCT 2011 15:00:00"
Cheers,

Josh
 
Old 10-10-2011, 07:06 AM   #3
barshani
LQ Newbie
 
Registered: Sep 2004
Location: Trivandrum
Distribution: Redhat
Posts: 18

Rep: Reputation: 3
To change date and time do the following
#date -s "Mon Oct 10 13:54:53 AST 2011"
 
  


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
Log Date/time doesn't change with system time saurabhchokshi Linux - Software 5 07-07-2010 01:27 AM
C code to change date time on linux mayankparasher Programming 5 03-31-2009 11:04 PM
Setting system date and time affecting the clock and date on BIOS satimis Ubuntu 7 09-21-2007 09:02 AM
how to change system time? date cmd? servnov Linux - Newbie 2 10-31-2004 04:07 PM
Change system time or date or both lel800 Linux - Newbie 6 10-28-2003 08:00 PM


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