Linux is processor 64 bit

Is my processor 64 or 32 bit?

Does it mean I am on 32bit or 64 bit processor? The reason I am trying to figure this out is that I was getting errors which looked like this:

cannot execute binary file 

5 Answers 5

someuser@somelaptop:~$ lscpu Architecture: i686 #  

Further explanation of the Architecture field:

X86, i686, or i386 means you are running a 32 bit kernel. X86_64 , amd64 , or X64 means you are running a 64 bit kernel. 

@slm: the architecture field refers to the kernel not the processor. I edited my answer to make it more clear.

It means that you're running a 32-bit kernel, which means that you can only run 32-bit apps without the use of an emulator or virtualization.

If you want to see if your processor is 64-bit then look for lm in the flags listed in /proc/cpuinfo .

@Ignacio So I have a 32-bit processor which will need to run something which is made for 64-bit. Is that at all possible?

I'm not Ignacio, but generally it's not. You could install a VM using a product that lets you emulate an 64-bit system o a 32-bit platform, though.

Much lighter weight than a VM is either a chroot or an lxc container twinned with QEMU. It all depends on what you need really.

You can also check the architecture of the binary you're trying to run by using file: file filetocheck . It will mention either 32-bit or 64-bit.

uname -p give the architecture of the processor. If it gives x86_64 , it means cpu is 64 bit.

@Jobin: uname prints information regarding the running kernel, not the CPU. For example you can run a 32-bit kernel on a 64-bit CPU.

x86_64 is 64 bit capable cpu and i386 is 32 bit.

Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 1 Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 Vendor ID: AuthenticAMD CPU family: 17 Model: 3 Stepping: 1 CPU MHz: 550.000 BogoMIPS: 4397.92 Virtualization: AMD-V L1d cache: 64K L1i cache: 64K L2 cache: 512K NUMA node0 CPU(s): 0,1 

Short answer lscpu | awk '/CPU op-mode/

Output : CPU op-mode(s): 32-bit, 64-bit

Long answer: run sudo lshw

Slightly shorter answer: sudo lshw -c cpu

 *-cpu description: CPU product: AMD Turion(tm) X2 Dual-Core Mobile RM-75 vendor: Advanced Micro Devices [AMD] physical id: 4 bus info: cpu@0 version: Turion X2 Mobile RM-75 slot: Socket M2/S1G1 size: 550MHz capacity: 4GHz width: 64 bits clock: 200MHz capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp x86-64 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch osvw skinit hw_pstate lbrv svm_lock nrip_save vmmcall cpufr 

Even shorter answer: sudo lshw -c cpu | grep width

Источник

Как узнать разрядность процессора 32 или 64 битный

Системному администратору и ИТ специалисту, очень важно знать, является ли архитектура процессора системы 32-битной или 64-битной.

Когда речь заходит об установки новых приложений, вы должны знать разрядность процессора. Потому что 64-битные приложения не могут быть запущены в 32-битной системе. А вот на 64 битном процессоре мы можем легко запускать 32 — битные приложения. Например при установки VMware Workstation 16 Pro требуется только 64 битный процессор.

В этой статье показано, как проверить архитектуру процессора на компьютере с Linux.

1. Использование команды lscpu для получения информации о архитектуре

Lscpu — это удобная команда для получения информации об архитектуре процессора в Linux.

Откройте свой терминал и введите следующую команду:

Эта команда покажет информацию о процессоре. Вся информация выведется в вашем терминале следующим образом:

Использование команды lscpu для получения информации о процессоре Linux

Поле архитектура показывает, какой тип процессора у вас установлен. Архитектура x86_64 обозначает 64 бит.

Режим работы процессора 32 — разрядный и 64 — разрядный. Это означает, что ваш процессор поддерживает как 32-битные, так и 64-битные приложения.

Примечание: наиболее распространенные используемые архитектуры процессоров : 64-разрядные они отображаются как x86-64, IA64 и AMD64. А 32-разрядные отображаются x86. Но процессоры i686 является частью семейства x86.

2. Использование команды uname для того чтоб узнать разрядность процессора

Uname — это команда которая покажет вам информацию о вашей системе Linux, а так же покажет версию ядра. Выполните эту команду, чтобы получить информацию о процессоре.

Ответ терминала будет следующим:

В этом способе команда uname сообщила, что Linux работает на 64-разрядном процессоре.

3. Использование команды lshw

Lshw — это простая команда для отображения информации об оборудовании вашей системы Linux. Вы можете получить информацию о процессоре Linux, выполнив следующую команду:

Вот такой ответ вы должны увидеть в терминале:

Использование команды lshw для получения информации о процессоре

Вы можете дополнительно установить фильтр с помощью команды grep. Для этого введите:

4. Получить информацию о процессоре из /proc/cpuinfo

В файле /proc/cpuinfo Linux содержит информацию о процессоре. Хранится она в виде обычного текстового файла. В терминале Linux выполните следующую команду grep.

$ sudo grep -o -w ‘lm’ /proc/cpuinfo | sort -u

Вы получите вот такой ответ в терминале:

lm обозначает режим процессора и является он 64-битным. Для получения дополнительной информации о процессоре вы можете выполнить следующую команду:

Заключение

В этой статье вы узнали как определить разрядность процессора на своем компьютере с операционной системой Linux.

Источник

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.

Delete Huge Files in Linux

Parted Command in Linux

TLDR Man Pages for Linux Commands

apt-get Command Examples

Ubuntu apt-cache Commands

apt Command Examples

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-bit) вашего компьютера

Как узнать какой разрядности процессор (32 или 64-bit) вашего компьютера
Для начала определимся, что такое разрядность и для чего эти данные могут вам пригодиться. Разрядность показывает какое количество битов процессор может обрабатывать одновременно.

узнать разрядность linux

Все linux системы доступны в двух вариациях — для 32-x разрядных процессоров и для 64-x разрядных. Разумеется, такое разделение появилось не просто так. Одними из самых важных различий, с которыми может столкнуться каждый пользователь, это:

  1. Максимальный объем используемой оперативной памяти
    Так сложилось, что 32-x разрядные системы просто не могут «увидеть» объем оперативной памяти, выходящий за пределы 4 гигабайт. Это отличие можно назвать самым существенным и главным. На 64-х битных системах, система может «видеть» и правильно работать со 192 гигабайтами оперативной памяти. Поэтому прежде чем увеличивать объем оперативной памяти, следует узнать, будут ли они доступны в системе.
  2. Разрядность процессора
    Разрядность процессора позволяет вам устанавливать операционные системы определенной разрядности. Чтобы установить 64-х битную систему, необходимо использовать 64-х битный процессор.
  3. Разрядность операционной системы
    Внешне операционные системы разных разрядностей ничем не отличаются. Есть только небольшие технические различия. Главное касается опять же оперативной памяти, ее объемом и корректной работой с ней. Еще, в 64-х битной системе можно запускать как 64-х битные, так и 32-битные приложения, чем не может похвастаться 32-х битная система.

Команды для вывода информации о процессоре:

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

На экране появится подробная инфомация, среди которой будет указана разрядность вашего процессора.

Если вы хотите узнать, какой разрядности у вас установлена система, то достаточно использовать команду в терминале:

Источник

Читайте также:  Узнать полный путь папки linux
Оцените статью
Adblock
detector