windows - How to find the architecture of OS installed?

08
2014-07
  • claws

    I'm using Core 2 Duo. So, from Intel website I found that it is 64-bit architecture CPU.

    Long back I've installed Ubuntu OS on this machine. But I'm not sure if I installed x86-32 or x86-64 version of Linux. I want to know which version of Linux I'm using. How to know that?

    How to find the same on windows?

  • Answers
  • matthias krull

    On unix like OSes you can type uname -m to show the architecture.

    Under windows follow microsofts guide

  • Tofystedeth

    On Windows Vista and newer you can run the command

    wmic os get osarchitecture
    

    to find out whether it's 32 or 64 bit.

  • Michael

    For Windows, check out this document from Microsoft. It tells you how to find out for any version of Windows you might have:

    http://support.microsoft.com/kb/827218link text

    For Windows 7, check the instructions here:

    http://windows.microsoft.com/en-US/windows7/32-bit-and-64-bit-Windows-frequently-asked-questions

  • Michael Caron

    Complimenting @Tofystedeth, in 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 AddressWidth
    

    If you want to find the architecture of the Processor itself:

    wmic cpu get DataWidth
    
  • HackToHell

    In linux

    $ uname -a

    shows info about the current running kernel.

  • Fazer87

    You may run msinfo32.exe on your system (in Command prompt), check System type under System Summary.


  • Related Question

    windows - How do I know if I have installed the 64 bit version of R on Ubuntu?
  • xiaodai

    To many of you this will sound totally stupid.

    I am completely new to Linux. I installed the 64 bit Ubuntu. And then I installed this software called R which I will use to analyse large datasets.

    So I used the sudo apt-get etc etc to install R and it installed fine. But how do I find out if I have installed the 32 bit or 64 bit of R? I need the 64 bit version to take advantage of my 12G of RAM.

    In Windows, 64 bit OS can run 32 bit executables. Not sure how Linux works.


  • Related Answers
  • quack quixote

    Use the 'file' command to determine the format of an executable (or any other file with a standard header). For example:

    2 ~$ file /bin/bash
    /bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
    3 ~$ file /lib/libpcre.so.3.12.1
    /lib/libpcre.so.3.12.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
    4 ~$
    

    In this case, both the file and the library are 64-bit.