Possibly linux@lemmy.zipM to Linux Questions@lemmy.zipEnglish · 1 year agoWhere does the Linux uptime command get its data?message-squaremessage-square3fedilinkarrow-up116arrow-down11file-text
arrow-up115arrow-down1message-squareWhere does the Linux uptime command get its data?Possibly linux@lemmy.zipM to Linux Questions@lemmy.zipEnglish · 1 year agomessage-square3fedilinkfile-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