Check if my machine is 64-bit capable on Linux (Ubuntu)?

9,736

Solution 1

run (as root/sudo)

lshw -class CPU

and look at the Width attribute. If its 64bit, your hardware is capable.

More info here: http://www.basiclinuxcommand.com/lshw/check-cpu-processor-type-information-linux-fedora-using-lshw-command.html

Solution 2

Just to throw a revision of Frank Thomas's answer into the ring. Enter this into your terminal and the answer will be pretty obvious.

lshw -class CPU | grep -i "width"
Share:
9,736

Related videos on Youtube

Abdullah 0v0
Author by

Abdullah 0v0

I'm Abdullah, out here in the lands of Egypt at the age of 12 (for any dummies who think I'm travelling to Egypt, I'm Egyptian, I'm also 12 if you noticed). I am, I believe, a guru in C++, developed some projects for Sourceforge in the past, LOVING C++11, just on the edge of my chair for C++14! Learning Haskell, Qt framework and Go (language) now. Expert with JavaScript, PHP and HTML. Trying out Blender for 3D, and multi booting Windows on my Linux Mint 16 laptop for Unity3D (games! yay!) Here's my Stack Overflow account: http://stackoverflow.com/users/3095977/abdullah-0v0

Updated on September 18, 2022

Comments

  • Abdullah 0v0
    Abdullah 0v0 over 1 year

    Similar to this question, I have a 32-bit OS (Ubuntu), but I want to know if my machine is 64-bit capable... I checked out the question, but the answers are Windows-specific... I also checked this question, but I want to know if it is 64-bit capable, I know my OS is 32-bit.
    Thanks, whoever I am

    • Cristian Ciupitu
      Cristian Ciupitu almost 10 years
      Please include the output of cat /proc/cpuinfo in your question.
    • Nullpointer42
      Nullpointer42 almost 10 years
      lscpu should work as well . . .
    • Panther
      Panther almost 10 years
      Surely this is a duplicate question and has been asked many times. grep ' lm ' /proc/cpuinfo - no output = 32 bit processor. lm = long mode == 64 bit capable and is considered the most relilable flag.
    • Cristian Ciupitu
      Cristian Ciupitu almost 10 years
    • AFH
      AFH almost 10 years
      Just a note note of caution: even if your CPU is capable of running a 64-bit OS, it is not always advisable to do so. The Ubuntu site recommends 32-bit Ubuntu if you have less than 2GB of RAM. 64-bit code is always bigger, and any gain in CPU speed is swamped by the degradation if there is increased swapping activity.
  • punund
    punund over 9 years
    This should be accepted answer.