How to find the architecture of OS installed
I'm using Core 2 Duo. From Intel website I found that it is a 64-bit architecture CPU.
Long back I've installed Ubuntu OS on this machine. But I'm not sure if I installed the x86-32 or x86-64 version of Linux. I want to know which version of Linux I'm using. How can I get to know that?
How do I find the same on Windows?
18 Answers
On Unix-like OSes you can type uname -m to show the architecture:
$ uname -m
x86_64Under Windows follow Microsoft's guide:
To find out if your computer is running a 32-bit or 64-bit version of Windows in Windows 7 or Windows Vista, do the following:
Open System by clicking the Start button, right-clicking Computer, and then clicking Properties. Under System, you can view the system type.
If your computer is running Windows XP, do the following: Click Start. Right-click My Computer, and then click Properties. If you don't see "x64 Edition" listed, then you're running the 32-bit version of Windows XP. If "x64 Edition" is listed under System, you're running the 64-bit version of Windows XP. 0 On Windows Vista and newer you can run the command
wmic os get osarchitectureto find out whether it's 32 or 64 bit.
From the console run
set and look for the PROCESSOR_ARCHITECTURE value. In my case:
PROCESSOR_ARCHITECTURE=AMD64Or just print from the beggining
echo %PROCESSOR_ARCHITECTURE% Complementing Tofystedeth's answer, in Windows XP (and newer) you can use cpu's AddressWidth and DataWidth to get the data you need.
If you want to find the architecture of the OS:
wmic cpu get AddressWidthIf you want to find the architecture of the processor itself:
wmic cpu get DataWidth 2 For Windows, check out this document from Microsoft. It tells you how to find out for any version of Windows you might have:
For Windows 7, check the instructions here:
2On Linux,
uname -ashows information about the current running kernel.
You may run msinfo32.exe (window System Information) on your system (in a command prompt). Check System Type under System Summary.
1For Windows 10... Settings → System and then About (bottom left corner). It should be listed under Device Specifications: 64 bit operating system and x64-based processor.
4