查询系统重启记录的方法 可以通过查询日志,判断是否人为执行重启命令 grep -i 'shutdown\|reboot' /var/log/secure cat ~/.bash_history | grep -i 'shutdown\|reboot'