Tuesday, November 6, 2007

Command to change the Date ( Unix )


command to change date

date -s "03/24/2006 14:0:10"

Commands:

FreeBSD:
date 0604111425
06 - year
04 - month
11 - date
14 -- hours
25 -- mins

second option

/usr/sbin/ntpdate -s 204.123.2.72 204.34.198.40 128.252.19.1 192.5.41.40

CentOS

rdate -s time.nist.gov


date -s "05/07/2007 00:11:59"



No comments:

Blog Archive