Sujet : Re: How Long Since Last Kernel Update
De : vallor (at) *nospam* cultnix.org (vallor)
Groupes : comp.os.linux.miscDate : 16. Jan 2025, 19:29:14
Autres entêtes
Message-ID : <lut1fqFrb66U2@mid.individual.net>
References : 1 2
User-Agent : Pan/0.161 (Hmm2; c45f6052; Linux-6.12.9)
On Tue, 14 Jan 2025 10:13:03 -0000 (UTC), Lem Novantotto
<
Lem@none.invalid> wrote in <
vm5dbe$2b9fo$2@dont-email.me>:
Il Tue, 14 Jan 2025 04:44:06 -0000 (UTC), Lawrence D'Oliveiro ha
scritto:
bc <<<"scale = 1; ($(date +%s) - $(stat -c%Y /vmlinuz)) / 86400"
Well, here vmlinuz is in /boot: so /boot/vmlinuz, above.
I just looked in /boot, and discovered /boot/vmlinuz is a symlink
to the actual file. While the time is usually pretty close
to the actual kernel file, it might not be.
So it would be:
bc <<<"scale = 1; ($(date +%s) - $(stat -L -c%Y /boot/vmlinuz)) / 86400"
-- -v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti OS: Linux 6.12.9 Release: Mint 21.3 Mem: 258G "I'm not a complete idiot - several parts are missing!"