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-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