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