Groups | Search | Server Info | Login | Register


Groups > comp.os.linux.misc > #72381

Re: How Long Since Last Kernel Update

From "Carlos E.R." <robin_listas@es.invalid>
Newsgroups comp.os.linux.misc
Subject Re: How Long Since Last Kernel Update
Date 2025-08-27 11:34 +0200
Message-ID <9103olx5vr.ln2@Telcontar.valinor> (permalink)
References <vm4q2m$29e1a$1@dont-email.me> <vm5dbe$2b9fo$2@dont-email.me> <lut1fqFrb66U2@mid.individual.net>

Show all headers | View raw


On 2025-01-16 19:29, vallor wrote:
> 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"
> 

Is that supposed to be a date?

cer@Telcontar:~> bc <<<"scale = 1; ($(date +%s) - $(stat -L -c%Y /boot/vmlinuz)) / 86400"
42.8
cer@Telcontar:~> uname -a
Linux Telcontar 6.4.0-150600.23.60-default #1 SMP PREEMPT_DYNAMIC Tue Jul  1 14:43:49 UTC 2025 (6f98261) x86_64 x86_64 x86_64 GNU/Linux
cer@Telcontar:~>
cer@Telcontar:~> l /boot/vmlinuz
lrwxrwxrwx 1 root root 34 Jul 31 00:21 /boot/vmlinuz -> vmlinuz-6.4.0-150600.23.60-default
cer@Telcontar:~>

other versions that have been posted here:

cer@Telcontar:~> bc <<<"scale = 1; ($(date +%s) - $(stat -c%Y /vmlinuz)) / 86400"
stat: cannot statx '/vmlinuz': No such file or directory
(standard_in) 1: syntax error
cer@Telcontar:~> bc <<<"scale = 1; ($(date +%s) - $(stat -c%Y /boot/vmlinuz)) / 86400"
27.4
cer@Telcontar:~> bc <<<"scale = 1; ($(date +%s) - $(stat -c%W / )) / 86400"
2894.4
cer@Telcontar:~> bc <<<"scale = 1; ($(date +%s) - $(stat -c%Y /boot/vmlinuz)) / 86400"
27.4
cer@Telcontar:~>



-- 
Cheers, Carlos.

Back to comp.os.linux.misc | Previous | NextNext in thread | Find similar


Thread

Re: How Long Since Last Kernel Update "Carlos E.R." <robin_listas@es.invalid> - 2025-08-27 11:34 +0200
  Re: How Long Since Last Kernel Update c186282 <c186282@nnada.net> - 2025-08-27 23:09 -0400
    Re: How Long Since Last Kernel Update Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2025-08-28 00:20 -0700
  Re: How Long Since Last Kernel Update Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-28 03:22 +0000
    Re: How Long Since Last Kernel Update "Carlos E.R." <robin_listas@es.invalid> - 2025-08-28 12:54 +0200
      Re: How Long Since Last Kernel Update Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-28 22:21 +0000
        Re: How Long Since Last Kernel Update "Carlos E.R." <robin_listas@es.invalid> - 2025-08-29 14:50 +0200
          Re: How Long Since Last Kernel Update Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-30 00:19 +0000
            Re: How Long Since Last Kernel Update "Carlos E.R." <robin_listas@es.invalid> - 2025-08-30 14:25 +0200
              Re: How Long Since Last Kernel Update rbowman <bowman@montana.com> - 2025-08-30 20:44 +0000
      Re: How Long Since Last Kernel Update vallor <vallor@cultnix.org> - 2025-08-28 22:28 +0000

csiph-web