The /proc filesystem /proc/uptime

This file contains the length of time since the system was booted, as well as the amount of time since then that the system has been idle. Both are given as floating-point values, in seconds.

Example output:

[fedora@fedora ~]$ cat /proc/uptime
3677.44 1898.50

[fedora@fedora ~]$ uptime
22:58:03 up 1:01, 2 users, load average: 0.24, 0.29, 0.32
[fedora@fedora ~]$
[root@fedora ~]#

Comments are closed.