Hi,

On Tue, Sep 15, 2026 at 04:51:19PM +0100, alain williams wrote:
> On Tue, Sep 15, 2026 at 10:28:26AM -0500, Richard Owlett wrote:
> > How do I identify whether in 32 or 64 bit mode.
> 
> $ file /bin/true

In Richard's specific case this probably will work because it's going to
be very unlikely that Richard (or the previous owner) has taken a 32-bit
Debian install and loaded a 64-bit kernel on it. But in the general
case, these don't have to match:

$ file /bin/true
/bin/true: ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV), 
dynamically linked, interpreter /lib/ld-linux.so.2, 
BuildID[sha1]=34b7090f95e38d12cf00b77a9afb8e51822fd92d, for GNU/Linux 3.2.0, 
stripped
$ uname -m
x86_64

If someone is going to try to crossgrade a Debian install from 32-bit to
64-bit then stopping after doing just the kernel is easy mode.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Reply via email to