Re: What tool(s) reports OS buss width, which processor present?
Hello,
On Wed, Aug 21, 2024 at 07:52:14AM -0400, Greg Wooledge wrote:
> It's extremely likely that whatever arch /bin/ls uses is the "primary"
> arch for the system. It works on every Linux system I've encountered,
> even if the kernel doesn't match it.
>
> Of course, for Debian specifically, there's also
>
> dpkg --print-architecture
>
> If that agrees with file /bin/ls, then you've got one more level of trust.
I'm sure that if a reader has done the following they would know and
remember, but I do have some i386 Debian hosts which were partially
cross-graded to amd64 only as far as running the amd64 kernel while
leaving all of the user land and the primary dpkg architecture as
i386. This is a supported configuration.
In that case "uname -a" reports the amd64 kernel correctly, while
"file /bin/ls" and "dpkg --print-architecture" both still report i386!
😀
Thanks,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting
Reply to: