Updating your system time with date command.
If you use date command without any parameter, it will print the current date and time.
[root@centos ~]# date Thu Jan 7 18:33:48 CET 2010
You can use the same command to set/change your system date and time.
Notation for this usage as listed below.
date MMDDhhmmYYYYY
Let’s say that we would like to set our system date and time to 9 January 2010 20:11 .
[root@centos ~]# date 010920112010 Sat Jan 9 20:11:00 CET 2010 [root@centos ~]# date Sat Jan 9 20:11:03 CET 2010
Related posts:
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
