CoolComputing Logo
Coupons/Deals  ·  New Promo Codes/Coupons  · October 18, 2018

Changing the date in Linux

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

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



[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: