每日shell脚本之时间脚本 #!/bin/bash # 查看当前时间 echo "当前时间:" date # 同步时间 sudo ntpdate cn.pool.ntp.org # 查看同步后的时间 echo "同步后的时间:" date