Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #72381
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Carlos E.R." <robin_listas@es.invalid> |
| Newsgroups | comp.os.linux.misc |
| Subject | Re: How Long Since Last Kernel Update |
| Date | Wed, 27 Aug 2025 11:34:01 +0200 |
| Lines | 48 |
| Message-ID | <9103olx5vr.ln2@Telcontar.valinor> (permalink) |
| References | <vm4q2m$29e1a$1@dont-email.me> <vm5dbe$2b9fo$2@dont-email.me> <lut1fqFrb66U2@mid.individual.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net JOL/0SgZNvTJNS3qPybJvQGCX5Ksg/NGOeWPjj4wlThOtTMqSC |
| X-Orig-Path | Telcontar.valinor!not-for-mail |
| Cancel-Lock | sha1:r3BcH9kg0IMg9pExAw32E1P9L2Y= sha256:ViG1Bu1IFVrBAQpwNzdzdAx3nXOi6uK6KC5sgyAOQ9I= |
| User-Agent | Mozilla Thunderbird |
| Content-Language | es-ES, en-CA |
| In-Reply-To | <lut1fqFrb66U2@mid.individual.net> |
| Xref | csiph.com comp.os.linux.misc:72381 |
Show key headers only | 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 | Next — Next in thread | Find similar
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