CoolComputing Logo
Coupons/Deals  ·  New Promo Codes/Coupons  · May 24, 2018

Changing the date in Linux

Posted on Sunday, November 10, 2002 @ 08:48:21 PM CST by David Yee [] [read 2585 times]

 
Tips: Linux/Unix world
To change the date in Linux, use the date command, which has the following syntax:

date MMDDHHmmYYYY

e.g.

[root@scooter logs]# date 111017482002
Sun Nov 10 17:48:00 PST 2002

Then you should run "hwclock", which synchronizes the hardware clock with the OS clock- just type the following:

hwclock --set --date="`date '+%m/%d/%y %H:%M:%S'`"





Please rate this article or post a brief review of Changing the date in Linux or comment on benchmark/performance, features, availability, price or anything else regarding Changing the date in Linux. Thanks!

Changing The Date In Linux Rating: 1.2/5 (9 votes cast)

Your Name:
I have read and agreed to the Review Posting Agreement.
Review Title:
Comment/Review: