2013年8月16日 星期五

linux-time setting


linux-clock linux-time linux-date


date -s "2 OCT 2006 18:00:00"    ## linux-date
date +%T -s "10:13:13"
date +%T%p -s "6:10:30AM"    ## linux-time
date +%T%p -s "12:10:30PM"

#date
Autoexec.bat (/etc/rc.local)
  • ntpdate -s stdtime.gov.hk
  • hwclock --systohc

  1. Ensure that the target script file is also marked executable.

$ head -n1 /etc/rc.local
#!/bin/sh -e
$ ls -l /etc/rc.local
-rwxr-xr-x 1 root root 419 2010-08-27 11:26 /etc/rc.local

沒有留言:

張貼留言