Sujet : Re: How Long Since Last Kernel Update
De : Lem (at) *nospam* none.invalid (Lem Novantotto)
Groupes : comp.os.linux.miscDate : 14. Jan 2025, 11:13:03
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vm5dbe$2b9fo$2@dont-email.me>
References : 1
User-Agent : Pan/0.160 (Toresk; )
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.
If you like to know when the system has been installed, and / is on a
fileystem like ext4, that nowadays saves the creation time, an option is:
$ ls -l -d --time=birth /
But be careful: sometimes it could just not work, or be inaccurate.
-- Bye, Lem Talis erit dies qualem egeris