Groups | Search | Server Info | Login | Register


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

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-28 12:54 +0200
Message-ID <a4p5olxo3b.ln2@Telcontar.valinor> (permalink)
References <vm4q2m$29e1a$1@dont-email.me> <vm5dbe$2b9fo$2@dont-email.me> <lut1fqFrb66U2@mid.individual.net> <9103olx5vr.ln2@Telcontar.valinor> <108oi1m$12q5m$2@dont-email.me>

Show all headers | View raw


On 2025-08-28 05:22, Lawrence D’Oliveiro wrote:
> On Wed, 27 Aug 2025 11:34:01 +0200, Carlos E.R. wrote:
> 
>> Is that supposed to be a date?
> 
>  From my original posting:
> 
> Above shows days elapsed since the last kernel update, to tenths of a day.
> To change the precision, adjust the scale accordingly.

Ah.

Well, as you can see, each concoction that was posted printed a different number.

The correct one is 43.91, calculated using a spreadsheet.


Lawrence:

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

vallor:

cer@Telcontar:~> bc <<<"scale = 1; ($(date +%s) - $(stat -L -c%Y /boot/vmlinuz)) / 86400"
43.9
cer@Telcontar:~>

cer@Telcontar:~> bc <<<"scale = 1; ($(date +%s) - $(stat -c%Y /boot/vmlinuz)) / 86400"
28.5
cer@Telcontar:~>

cer@Telcontar:~> bc <<<"scale = 1; ($(date +%s) - $(stat -c%W / )) / 86400"
2895.4
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:~>
cer@Telcontar:~> l /boot/vmlinuz-6.4.0-150600.23.60-default
-rw-r--r-- 1 root root 14204640 Jul 15 14:48 /boot/vmlinuz-6.4.0-150600.23.60-default

The symlink was created 28.51 days ago.	


-- 
Cheers, Carlos.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next 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