Linux获取开机之后过去的秒数

/proc/uptime。第一个值是开机之后过去的秒数。第二个值是所有核的idle的时间之和。

来源:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/s2-proc-uptime

posted @ 2024-09-28 13:38  寻找繁星  阅读(1)  评论(0编辑  收藏  举报