[OpenIndiana-discuss] How to tell for sure what bit your OS is?

Jonathan Adams t12nslookup at gmail.com
Fri May 26 16:02:30 UTC 2017


>
>
> Jonathan Adams <t12nslookup at gmail.com> writes:
>
> > Much better than the Linux "file 'which file'" (with back ticks) ...
> >
>
>
> sudo  file `which file`
> /usr/bin/file:  ELF 32-bit LSB executable 80386 Version 1, dynamically
> linked, not stripped, no debugging information available
>
> Er... looks like one of the techniques has got it wrong
>
> Or does something else explain this?
>
> On Illumos the "file" command is 32bit (as the kernel can run both 32 and
64 bit happily together), on Linux the above command is a sensible way of
working out what bit kernel you're running as it's more of a PITA to run
32bit and 64 bit side by side (or so I believe) ...

On Linux:

jadams at EID-4546:~$ file `which file`
/usr/bin/file: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux
2.6.32, BuildID[sha1]=ecc4d67cf433d0682a5b7f3a08befc45e7d18057, stripped


More information about the openindiana-discuss mailing list