ballu Site Admin
Joined: 17 Jan 2007 Posts: 34 Location: INDIA
|
Posted: Fri Mar 30, 2007 3:22 pm Post subject: How to set date & time in unix |
|
|
Description To set date & time in unix
#date
Output: Mon Jan 12 16:27:00 IST 2004
Only the superuser or root user may set the date.
General format of date command is as follows:
Eg: Mon Jan 12 16:27:00 IST 2004
Eg: date mmddhhmmsyy
Where,
* mm : Month (1-12)
* dd : Day (1-31)
* hh : Hours (0..23)
* mms : Minutes
* yy : Year in two digit
#date 0112162704 |
|