Sujet : Re: Inconsistent results for checking whether the OS is 32 or 64 bit
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.sys.raspberry-piDate : 17. Jul 2024, 23:00:51
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v79eui$21c61$1@dont-email.me>
References : 1
User-Agent : Pan/0.158 (Avdiivka; )
On Wed, 17 Jul 2024 15:03:00 +0100, Adam Funk wrote:
I have a Pi 4 B that I use headlessly over SSH. I can't remember whether
I installed the 32-bit or 64-bit OS on it, but different commands found
on the web give different results.
Try looking at a representable executable, e.g. /bin/bash:
file /bin/bash
On my (admittedly AMD64) machine, I get
/bin/bash: ELF 64-bit LSB pie executable, ...
but that initial part should not be architecture-specific.