Possibly linux@lemmy.zipM to Linux Questions@lemmy.zipEnglish · 1 year agoWhere does the Linux uptime command get its data?message-squaremessage-square2fedilinkarrow-up116arrow-down10file-text
arrow-up116arrow-down1message-squareWhere does the Linux uptime command get its data?Possibly linux@lemmy.zipM to Linux Questions@lemmy.zipEnglish · 1 year agomessage-square2fedilinkfile-text
minus-squaremvirts@lemmy.worldlinkfedilinkEnglisharrow-up7·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
https://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