Which linux 32 bit or 64 bit

How to determine if you have a 32-bit or 64-bit CPU

The steps to determine whether your computer has a 32-bit or 64-bit processor (CPU) depend on the type of operating system installed. Below are the steps to determine the processor type for Windows, Mac, and Linux.

Windows 8 and 10

To determine your CPU type and how many bits the processor has in Windows 8 and Windows 10, see the following steps.

  • In the Windows search box, type system information and select the System Information icon.

Or, if you do not have a search box (because you have disabled it):

  1. Open a File Explorer window by pressing Windows key + E .
  2. On the left, right-click This PC.
  3. In the context menu, select Properties. The System Properties window opens.

  1. In the System Properties window, find your System type, which lists your operating system and CPU type.

To determine the manufacturer of the processor (e.g., AMD or Intel) and its model see the Processor line.

Earlier versions of Windows

With earlier versions of Windows, follow these steps.

  • Open the Start menu >All Programs. Open the Accessories folder, then the System Tools folder. In the System Tools folder, select the System Information option.

On the right side of System Information, look for the System Type option under the Item column. The associated value, in the Value column, will tell you which type of CPU the computer has in it. If the System Type value includes «x86» in it, the CPU is 32-bit. If the System Type value includes «x64» in it, the CPU is 64-bit.

See our System Information page for further information about this utility.

Determine if using 32-bit or 64-bit version of Windows

Microsoft Windows is available in 64-bit and 32-bit. 32-bit processors can only run 32-bit versions of Windows. However, 64-bit processors can run either the 64-bit or 32-bit versions.

To determine if the version of Windows on your computer is 32-bit or 64-bit, choose your version and follow the steps.

Determine if Windows Vista, 7, 8 and 10 is 32-bit or 64-bit

  1. Press and hold the Windows key and the Pause key.
  2. In the System window, next to System type, it lists 32-bit Operating System for a 32-bit version of Windows, and 64-bit Operating System if you’re running the 64-bit version. Below is a picture and an example of this window.

Determine if Windows XP is 32-bit or 64-bit

  1. Press and hold the Windows key and the Pause key, or open the System icon in the Control Panel.
  2. On the General tab of the System Properties window, if it has the text Windows XP, the computer is running the 32-bit version of Windows XP. If it has the text Windows XP Professional x64 Edition, the computer is running the 64-bit version of Windows XP.
Читайте также:  Swap ssd mac os

Determine if Windows 2000 and prior is 32-bit or 64-bit

Windows operating systems, from Windows 95 to Windows 2000, are all 32-bit. There are no 64-bit versions of these operating systems.

Apple macOS

On the macOS, click the Apple icon in the menu bar. Select the About This Mac option in the Apple menu. On the About This Mac window, click the More Info option. Open the Hardware section and find the Processor Name attribute. Once listed, perform an Internet search, using that CPU’s processor name as a keyword, to determine if it’s a 32-bit or 64-bit CPU.

Processor 32-bit or 64-bit
Intel Core Duo or Solo 32-bit
Intel Core 2 Duo 64-bit
Any Intel Xeon processor 64-bit
Intel Core i3 64-bit
Intel Core i5 64-bit
Intel Core i7 64-bit

As shown in the table above, all the most recent Mac computers are 64-bit processors.

Linux

On the Linux operating system, access the command line interface and enter the following command.

Look for «lm» in the command output. If lm is found in the output, then the CPU is 64-bit. If you don’t see lm or see i386, i486, i586, or i686 in the output, then the CPU is 32-bit. Below is an example output of the command above with lm in the information.

Determine if the Linux kernel is 32-bit or 64-bit

Using the uname command, you can determine if your Linux kernel is 32-bit or 64-bit by running the command below.

This command would give you output similar to the example output below.

If you see x86_64 in the output, this indicates it is x86 and that it is 64-bit.

Источник

How do I know if my Linux is 32 bit or 64 bit?

Let us see all commands to Find if Linux is running on 32-bit or 64-bit systems.

How do I know if my Linux is 32 bit or 64 bit?

To know information about the CPU architecture, type the following lscpu command:
lscpu

From the above output it is clear that I have:

  • CPU: AMD Ryzen 7 1700 Eight-Core Processor
  • Architecture: x86_64
  • CPU can run: 32bit or 64-bit operating system

Find out CPU is 32bit or 64bit on a Linux system

Simply run the following grep command:
grep -o -w ‘lm’ /proc/cpuinfo | sort -u
Sample outputs:

The lm flag means long mode cpu i.e. 64 bit CPU. For more info type the following cat command to get complete info on your CPU:
cat /proc/cpuinfo
cat /proc/cpuinfo | more

How do I know if my Linux is 32 bit or 64 bit?

Now you know you have an AMD CPU that can run both 32bit and 64 bit operating systems. But, how do I know if my current kernel and Linux distro are 64-bit or 32-bit? Fear not, run the following command:
getconf LONG_BIT

The getconf command checks if the Linux kernel is 32 bit or 64 bit. The 64 means I am running 64 bit Linux kernel and Linux distro.

Other Linux command to check if I have a 32-bit or a 64-bit OS

Run the following uname command:
uname -i
For 64bit you will get x86_64 and i386 for 32bit Intel CPU.

A note about GUI method

Open your Linux distros, System Settings window, and select the Details:

Use the lshw command

Execute the following lshw command to list all info about CPU:
sudo lshw -c cpu
Sample outputs:

Источник

5 Command Line Ways to Find Out Linux System is 32-bit or 64-bit

This tutorial describes how to find out whether your Linux system’s OS is 32-bit or 64-bit. This will be helpful if you wanted to download or install an application in your Linux system. As we all know, we can’t install 64-bit applications into a 32-bit OS type. That’s why knowing your Linux system’s OS type is important.

Check Linux System is 32-bit or 64-bit

Here are the five easy and simple methods to verify your Linux system’s OS type. It doesn’t matter whether you’re using a GUI or CLI type systems, the following commands will work on almost all Linux operating systems such as RHEL, CentOS, Fedora, Scientific Linux, Debian, Ubuntu, Linux Mint, openSUSE etc.

Читайте также:  Курсор мыши для линукс

1. uname Command

uname -a command will display your Linux system’s OS type. This is the universal command and it will work on almost all Linux/Unix operating systems.

To find out the system’s OS type, run:

2. dpkg Command

dpkg command will also display whether your Debian/Ubuntu operating system is 32-bit or 64-bit. This command will work only on Debian and Ubuntu based distributions and it’s derivatives.

Open your Terminal, and run:

If your OS is 64-bit, you’ll get the following output:

If your OS is 32-bit, then the output will be:

3. getconf Command

getconf command will also display the system configuration variables. Now, let me show you how to find out the Linux system arch using getconf command.

For more details refer the man pages.

4. arch Command

arch command will display your OS type. This command is similar to uname -m command. If its output is x86_64 then it’s 64-bit OS. If the output is i686 or i386, then it’s 32-bit OS.

5. file Command

file command with with a special argument /sbin/init will display the OS type.

Conclusion

You now know the ways to find out your Linux operating system’s type. Of course, there are few other ways to find out the OS type, but these are the often and pragmatic methods so far. If you know any other commands or methods to display the OS type, feel free to let us know in the comments section below.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

We are thankful for your never ending support.

11 thoughts on “5 Command Line Ways to Find Out Linux System is 32-bit or 64-bit”

I’d just like to interject for a moment. What you’re referring to as Linux, is in fact, GNU/Linux, or as I’ve recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called “Linux”, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine’s resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called “Linux” distributions are really distributions of GNU/Linux.

You can also check using a environment variable:

Источник

How To Know If You Have 32 Bit or 64 Bit Computer in Linux and Windows

Last updated August 15, 2020 By Abhishek Prakash 45 Comments

Brief: This quick tip shows you how to check whether your computer is 32-bit or 64-bit. You can also check if your system can support 64-bit or not.

Do I have a 32-bit system or 64-bit system? How to tell if my computer is 32-bit or 64-bit? How to find out if my system is 64 bit capable or not? Am I running 32-bit Ubuntu or 64-bit Ubuntu? Am I running 32-bit Ubuntu on a 64-bit CPU? Do I have 32- or 64-bit Windows?

These are some common questions that users often wonder about. Finding out whether a computer is 32-bit or 64-bit is fairly simple. Before we see how to tell whether your computer is 32-bit or 64-bit, first let’s see the difference between the two systems.

Читайте также:  Драйвер для explay fresh для windows 10

32-bit vs 64-bit Systems: What’s the difference?

Processors in the early 1990s used 32-bit architecture. This means that their data bus had the capacity to handle 32 bits at a time. As the technology grew, 64-bit processors came on the scene.

These newer processors have a data bus width of 64 bits. This means they’re at least twice as fast as their 32-bit counterparts. To use the capabilities of 64-bit processors, operating systems began to release 64-bit versions.

One thing to remember is that a 64-bit processor can support either a 32-bit or a 64-bit OS but a 32-bit processor can only run a 32-bit OS.

If you bought your computer in the last 7-8 years, you should have a 64-bit system. Don’t worry, I won’t force you to dig up and see when you bought your computer.

Read more about 32-bit vs 64-bit here.

So now, you’ve learned these few things:

  • Your computer can have either a 32-bit or a 64-bit processor
  • Your operating system can be 32-bit or 64-bit
  • A computer with a 64-bit processor can run both 32-bit and 64-bit operating systems
  • A computer with a 32-bit processor cannot run 64-bit operating systems

Now that you know the basics, let’s see how to find out whether you have a 32-bit or a 64-bit system on both Windows and Linux.

How to know if your computer is 32-bit or 64-bit on Windows

Getting this information is fairly easy on Windows. Here’s how to do it in two easy steps.

Go to Windows Explorer, right click on This PC and then select Properties.

You’ll see the system information on the next screen. In here, you should look for System Type.

As you can see in the image above, it says “64-bit Operating System, x64-based processor”.

Which means that I have the 64-bit Windows operating system installed on a 64-bit CPU.

That’s how it works on Windows. Now let me show you how to find out whether you have a 32-bit or 64-bit system on Linux.

How to know whether your computer is 32-bit or 64-bit on Linux

If you’re using Ubuntu or any other form of Linux, it’s still easy to find out whether your system is 32-bit or 64-bit. Mind that we’re talking about the processor here, not the OS itself.

Open a terminal and run the following command:

You should see a result like this:

You need to look for the line that starts with CPU op-mode. As you can see in the above result, my CPU can support 32-bit and 64-bit. This means I have a 64-bit CPU.

If you see only 32-bit under CPU op-mode, you have a 32-bit system.

How to tell if Ubuntu is 32- or 64-bit

So, we just saw how to find out whether our system is 32 bit or 64-bit. But how can you learn whether the Ubuntu you installed on your system is 32-bit or 64-bit?

I mean, a 64-bit system can support both 32-bit and 64-bit operating systems. So if you have a 64-bit system, it’s better (and recommended) to install a 64-bit OS.

To check whether the installed Ubuntu OS is 32-bit or 64-bit, we’ll use the same command we used in the previous section:

In the result, look for the line starting with Architecture. This will tell you the OS architecture.

  • x86, i686 or i386 means 32-bit Linux
  • x86_64 , amd64 or x64 means 64-bit Linux

In my case, I had x86_64 in the result, which means I have 64-bit Ubuntu installed.

Alternatively, you can use this command that we saw in an older article about finding your Ubuntu Unity version:

The result will be x86, i686, i386, x86_64, x64, etc. And you can easily work out the OS architecture from it.

You can also use the arch command:

The output will indicate whether your installed Linux system is 32-bit or 64-bit.

I hope this quick post helped you find out whether you have a 32-bit or 64-bit CPU and a 32-bit or 64-bit operating system.

Like what you read? Please share it with others.

Источник

Оцените статью