Does it get the uptime of pid 1 or something else?
You must log in or register to comment.
I believe it comes from this: https://man7.org/linux/man-pages/man5/utmp.5.html
You can always check the code: https://github.com/coreutils/coreutils/blob/master/src/uptime.c
It reads it from
/proc/uptime
, which is generated by the kernel.