proper way to determine arch of *installed* OS, not processor?
Chris Jones
jonesc at hep.phy.cam.ac.uk
Fri May 6 15:32:32 UTC 2011
Jesse Palser wrote:
> On 05/06/2011 11:14 AM, Robert P. J. Day wrote:
>> what is the proper incantation to determine the word size of the
>> installed OS? that is, if i've installed the 32-bit version of ubuntu
>> on a 64-bit system, i want to know that the OS is 32 bits, even as the
>> processor is 64 bits. i'm sure it's some option of "uname", but i
>> don't have such a system lying around to test it. thanks.
>>
>> rday
>
> Hi,
>
> I did not know either, Google found this:
> uname -a
> (type in terminal)
The -a options prints all info. You can fine tune via
> uname --help
pciy ~ > uname --help
Usage: uname [OPTION]...
Print certain system information. With no OPTION, same as -s.
-a, --all print all information, in the following order,
except omit -p and -i if unknown:
-s, --kernel-name print the kernel name
-n, --nodename print the network node hostname
-r, --kernel-release print the kernel release
-v, --kernel-version print the kernel version
-m, --machine print the machine hardware name
-p, --processor print the processor type or "unknown"
-i, --hardware-platform print the hardware platform or "unknown"
-o, --operating-system print the operating system
--help display this help and exit
--version output version information and exit
Chris
>
> Enjoy!
>
> Jesse
>
>
More information about the ubuntu-users
mailing list