时间戳 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小节的最后有详细说明
时间戳 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小节的最后有详细说明
# 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