LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux RedHat: How to change system date/time? (https://www.linuxquestions.org/questions/linux-newbie-8/linux-redhat-how-to-change-system-date-time-907356/)

dijonez@gmail.com 10-10-2011 05:03 AM

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?

corp769 10-10-2011 06:05 AM

Hello,

Run the following:
Code:

man date
And read.
As an example:
Code:

date -s "10 OCT 2011 15:00:00"
Cheers,

Josh

barshani 10-10-2011 06:06 AM

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


All times are GMT -5. The time now is 05:26 AM.