寻觅生命中的那一片浅草......

每日存档 十一月 25th, 2009

date转换时间和时间戳

时间戳 to 时间
date -d ‘1970-01-01 UTC 946684800 seconds’ +”%Y-%m-%d %T %z”

时间 to 时间戳
date -d ‘2006-02-14 00:00:00’ +%s

info date
看example小节的最后有详细说明

chkconfig在ubuntu里用什么命令替代

# update-rc.d sshd defaults          # Activate sshd with the default runlevels
# update-rc.d sshd start 20 2 3 4 5 . stop 20 0 1 6 .  # With explicit arguments
# update-rc.d -f sshd remove         # Disable sshd for all runlevels
# shutdown -h now (or # poweroff)    # Shutdown and halt the system

2009年十一月
« 10月   12月 »
 1
2345678
9101112131415
16171819202122
23242526272829
30