set system date/time in linux
by Ramya[ Edit ] 2009-12-24 13:53:12
set system date/time in linux:
Display current date/time in linux
Use date command to display current timing in linux as,
[root@localhost ~]# date
Thu Dec 24 19:06:46 IST 2009
To change or set system date/time in linux use date command as,
date nnddhhmm[[cc]yy][.ss]
where
* nn = month of the year (01 to 12)
* dd = day of the month (01 to 31)
* hh = hour of the day (00 to 23)
* mm = minute of the hour (00 to 59>
* cc = The first to digits of the year
* yy = The last two digits of the year
* .ss = The seconds
for eg,
[root@localhost ~]# date 12240140
Thu Dec 24 01:40:00 IST 2009