Linux x86 64 is 32 bit or 64 bit

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:

$ uname -a Linux tecmint.com 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

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:

$ dpkg --print-architecture 

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.

$ getconf LONG_BIT 64

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.

$ file /sbin/init /sbin/init: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=7a4c688d009fc1f06ffc692f5f42ab09e68582b2, stripped

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.

Читайте также:  Команда переместить все файлы линукс

A Linux Consultant, living in India. He loves very much to write about Linux, Open Source, Computers and Internet. Apart from that, He’d like to review Internet tools and web services.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Parted Command in Linux

TLDR Man Pages for Linux Commands

apt-get Command Examples

Ubuntu apt-cache Commands

apt Command Examples

Funny Linux Commands

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. Reply

Great post! You can also check using a environment variable: echo $HOSTTYPE Result: i386 -> 32 bits
x86_64 -> 64 bits Reply

Источник

Как узнать разрядность 32 или 64 бита системы Linux?

Важно знать как версия 64-битная или 32-битная у Вас установлена. И для операционных систем Linux это делается легко с помощью одной простой команды arch, которая является аналогом uname -m . Все примеры ниже были выполнены в операционной системе Ubuntu 18.04.

Для того, чтобы узнать версию разрядности системы, выполните в консоли команду:

В результате команда вывела x86_64, и по этому можно легко догадаться что установлена операционная система Ubuntu 64-бита.

В результате вывода команды могут быть следующие значения:

  • x86, i686 или i386 -> это означает 32-битный Linux
  • x86_64, amd64 или x64 -> это означает 64-битный Linux

Для получения того же результат мы можем использовать еще более короткую команду:

Вывод результата одинаков, потому что команда arch полностью аналогична команде uname -m. В этом легко убедиться, если мы посмотрим документацию по этой команде, набрав:

Для того, чтобы узнать разрядность вашей Linux системы, используйте консольную команду arch .

Источник

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

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?

Читайте также:  Booting kernel failed linux invalid argument

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.

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

Find out if Windows is 32 bit or 64 bit

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

Find out if Windows is 32 bit or 64 bit

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:

find out if ubuntu is 32 bit or 64 bit

Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 69
Model name: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
Stepping: 1
CPU MHz: 1694.812
CPU max MHz: 2700.0000
CPU min MHz: 800.0000
BogoMIPS: 4788.66
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
NUMA node0 CPU(s): 0-3
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts

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:

Читайте также:  Linux install virtualbox dkms

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

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.

Checking if you have 32-bit or 64-bit ARM processor

As suggested by It’s FOSS reader, Hugh, the above suggestions may not work for ARM based devices like Raspberry Pi.

Here, you can install the inxi tool and get the necessary information:

The output may show something like this:

“System: Host: rpiB3 Kernel: 5.10.63-v7+ armv7l bits: 32 Console: tty 0 Distro: Raspbian GNU/Linux 10 (buster) ”

As you can see, it says 32 bits, signifying it to be a 32-bit processor.

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.

Источник

Как узнать разрядность Linux

Разрядность операционной системы определяет набор инструкций процессора, которые будут использоваться для работы с данными и памятью компьютера. Существует две самые популярные разрядности, это i386 или 32 битная разрядность и x86_64 или 64 битная разрядность. Первая уже устаревшая и поддерживает работу с не больше чем 4 гигабайта оперативной памяти.

Вторая же более современная и сейчас используется практически везде. Все современные процессоры поддерживают обе архитектуры, однако многие дистрибутивы Linux уже отказались от поддержки i386 в пользу x86_64. В этой небольшой статье мы рассмотрим как узнать разрядность Linux.

Как посмотреть разрядность Linux

Самый простой способ узнать разрядность операционной системы Linux — это воспользоваться утилитой arch. Она просто выводит разрядность и больше ничего:

Команда uname выводит архитектуру ядра Linux если передать ей опцию -m, архитектура ядра соответствует архитектуре системы, поэтому этот метод можно использовать:

Команда file позволяет просматривать информацию о файлах в файловой системе. Для исполняемых файлов отображается их архитектура. Если вы посмотрите архитектуру какого-либо важного системного файла, то узнаете и разрядность системы. Например:

Вы можете узнать разрядность системы и в графическом интерфейсе. Например, в Ubuntu, для этого надо открыть утилиту Настройки, а затем раздел О системе:

Тут есть пункт Тип ОС, в котором указана разрядность системы. В данном случае, это 64 бит. Обратите внимание, что то, что система имеет архитектуру 64 бит не означает, что она не может запускать 32 битные программы и библиотеки. Эта архитектура сохраняет обратную совместимость и процессоры всё ещё могут выполнять 32 битные программы. Для этого достаточно установить пакет совместимости и необходимые 32 битные библиотеки. Но в обратную сторону это не работает, 32 битные системы не могут выполнять 64 битные программы. Во всяком случае теперь вы знаете как посмотреть разрядность системы Linux.

Обнаружили ошибку в тексте? Сообщите мне об этом. Выделите текст с ошибкой и нажмите Ctrl+Enter.

Источник

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