How to check if your CPU is 32-bit or 64-bit

Hasanka Amarasinghe
2 min readAug 29, 2023

--

The following are the steps on how to check if your CPU is 32-bit or 64-bit on different operating systems:

Windows:

  • Open the System Information application. You can find it by searching for “System Information” in the Start menu.
  • On the System Summary screen, look for the System Type field. If it says x64-based PC, then your CPU is 64-bit. If it says x86-based PC, then your CPU is 32-bit.

macOS:

  • Open a terminal window.
  • Run the following command:
uname -m

If the output is x86_64, then your CPU is 64-bit. If the output is i386 or something similar, then your CPU is 32-bit. (I dont have access to a mac, so if you do, please send a screenshot :)

Linux:

  • Open a terminal window.
  • Run the following command:
cat /proc/cpuinfo | grep flags

If the output contains the lm flag, then your CPU is 64-bit. If the output does not contain the lm flag, then your CPU is 32-bit.

The following command line will tell you what kind of CPU you have:

grep -qP '^flags\s*:.*\blm\b' /proc/cpuinfo && echo 64-bit || echo 32-bit
64-bit

--

--

Hasanka Amarasinghe
Hasanka Amarasinghe

Written by Hasanka Amarasinghe

Blogs on latest security events + CTF writeups

No responses yet