Re: Identifying CPU and current OS
On Sun, Sep 28, 2025 at 08:23:28 -0400, Robert Heller wrote:
> At Sun, 28 Sep 2025 07:00:11 -0500 Richard Owlett <rowlett@access.net> wrote:
> > How do I find if the installed OS is 32 or 64 bit?
>
> uname -a
>
> This will tell you the kernel version, including the bus width
> (Note: it is possible to install a 32-bit kernel on a 64-bit processor)
This is not a good answer, because it tells you whether the KERNEL is
32-bit or 64-bit, but not the userland. The kernel could be 64-bit
with the userland being 32-bit. That is a supported configuration.
The original "file /bin/true" (I've always preferred "file /bin/ls"
myself, since /bin/true has at many times been a shell script) is a
much better answer.
Reply to: