Possibly linuxM to Linux QuestionsEnglish · 1 year agoWhere does the Linux uptime command get its data?message-squaremessage-square2fedilinkarrow-up116arrow-down11file-text
arrow-up115arrow-down1message-squareWhere does the Linux uptime command get its data?Possibly linuxM to Linux QuestionsEnglish · 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