How To Change The Date And Time From The Console

Channel: Linux
Abstract: ss or date --set=hhdate -d mm/dd/yy or date --date=mm/dd/yy where mm=month
How To Change The Date And Time From The Console

This short tutorial explains how you can modify your system date and time from the console.

To change the date on Linux from the console type:

date -d mm/dd/yy

or

date --date=mm/dd/yy

where mm=month, dd=day and yy=year

To change the time on Linux from the console type:

date -s hh:mm:ss

or

date --set=hh:mm:ss

where hh=hour, mm=minute, ss=second

Ref From: howtoforge
Channels: linux

Related articles