On Mon, Jan 31, 2022 at 03:24:51PM +0200, Teemu Likonen wrote: > * 2022-01-31 06:32:23-0600, Richard Owlett wrote: > > > Due to historical circumstances, I have laptops which multi-boot > > various Debian releases. There be 32 bit and 64 bit versions of the > > same release on a particular machine. > > > > 1. From current console, how can I determine which is running? > > [ equivalent of /etc/debian_version would be ideal ] > > The running kernel and CPU: > > $ lscpu | head -n2 > Architecture: x86_64 > CPU op-mode(s): 32-bit, 64-bit > > $ uname -m > x86_64
The problem is, you can have a 64-bit kernel and a 32-bit userspace. So, there's no "uname" command that answers the real question. The real command the OP is looking for is dpkg --print-architecture I still prefer file /bin/ls because I can *remember* it (and it'll work on non-Debian-based systems).