法一,如果是启动过程,可以检测到/tmp/sys_booting文件 法二,检测系统的开机时间:cat /proc/uptime | awk {print int($0)}, 一般开机时间是几十秒,从而可以判断开机多长时间了。