Possibly linuxM to Linux [email protected]English • 1 year agoWhere does the Linux uptime command get its data?message-square1fedilinkarrow-up113arrow-down11file-text
arrow-up112arrow-down1message-squareWhere does the Linux uptime command get its data?Possibly linuxM to Linux [email protected]English • 1 year agomessage-square1fedilinkfile-text
minus-square@mvirtslinkEnglish8•1 year agohttps://github.com/coreutils/coreutils/blob/master/src/uptime.c From utmp https://github.com/gagern/gnulib/blob/master/lib/readutmp.h https://en.wikipedia.org/wiki/Utmp