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-squarefrankfurt_schoolgirl [she/her]@hexbear.netlinkfedilinkEnglisharrow-up3·1 year agoI 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
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