What is my system architecture linux

compizomania

Чтобы узнать архитектуру компьютера, нужно открыть терминал и выполнить одну из двух команд:

После выполнения команды вы должны увидеть:

  • x86_64 =64 bit архитектуре
  • i686 (i386) =32 bit архитектуре

Что соответствует 32 bit архитектуре.

Чтобы узнать тип используемой OS, кликните на выключателе ->Настройки системы ->Сведения о системе.

2 комментария :

Вопрос видимо был иной, а именно как узнать архитектуру компьютера. А вместо этого Вы ответили на другой вопрос, как узнать архитектуру установленной ОС. Собственно этого не спрашивали и этот вопрос даже не интересен! Наверное все дилетанты, считающие себя спецами по архитектуре не знают архитектуру своего компа. Возможно вы определили её так же. Ну а что если архитектура вашего компа отличается от архитектуры вашей системы. Скажем у вас 32-х разрядная система установлена на 64-х разрядной архитектуре. Такое бывает сплошь да рядом. С помощью дурацкой команды типа arch вы автоматом получите ошибочный результат. А ответа-то на главный вопрос нету. Наверное ещё сложнее определить поддерживаемые процессором наборы команд и технологий. Я конечно не пытался в 64-ти разрядную системную плату засунуть 32-х разрядный процессор и наоборот, но если кто пытался скажите. Не уверен, что это возможно и тем паче не уверен, что будет работать. Что угодно куда угодно пихать нельзя. Более того надо чтобы была синхронизация по частоте и типам данных и памяти. Иначе тоже получится нерабочая комбинация. Конечно компании стараются придумывать уникальные разъёмы чтобы подходили только правильные комбинации. Ну а вдруг получится? Что тогда? Ответить Удалить

Источник

Shell how to know which architecture of linux

If there’s or then you have at least basic 64-bit (amd64) support. will tell you what architecture utilities are compiled from (usually, the whole OS userland is compiled for one architecture, perhaps with additional libraries for another ABI for custom applications). Solution 2: If you were running a 64 bit platform you would see x86_64 or something very similar in the output from uname -a To get your specific machine hardware name run You can also call which returns either 32 or 64 Solution 3: will list out these among other information regarding your CPU: Solution 1: To display kernel architecture: To display extended CPU details: Solution 2: In the terminal, type which returns output like this: To only get the architecture: Which in this case is See for more.

Easy command line method to determine specific ARM architecture string?

On Debian and derivatives,

will output the primary architecture of the machine it’s run on. This will be armhf on a machine running 32-bit ARM Debian or Ubuntu (or a derivative), arm64 on a machine running 64-bit ARM.

Note that the running architecture may be different from the hardware architecture or even the kernel architecture. It’s possible to run i386 Debian on a 64-bit Intel or AMD CPU, and I believe it’s possible to run armhf on a 64-bit ARM CPU. It’s also possible to have mostly i386 binaries (so the primary architecture is i386 ) on an amd64 kernel, or even binaries from an entirely different architecture if it’s supported by QEMU (a common use for this is debootstrap chroots used for cross-compiling).

Читайте также:  Linux общие папки nfs

How to check CPU Architecture in Rocky Linux 8, In this video we are going to see how to find the CPU Architecture in Rocky Linux 8 Duration: 1:02

Introduction to Linux Shell , Kernel and Architecture

Linux Architecture and the Kernel

This video explains the architecture of Linux, detailing the difference between the user space Duration: 5:11

How to check CPU Architecture in Rocky Linux 8

How to determine whether a given Linux is 32 bit or 64 bit?

Try uname -m . Which is short of uname —machine and it outputs:

x86_64 ==> 64-bit kernel i686 ==> 32-bit kernel 

Otherwise, not for the Linux kernel, but for the CPU , you type:

Under «flags» parameter, you will see various values: see «What do the flags in /proc/cpuinfo mean?» Among them, one is named lm : Long Mode (x86-64: amd64, also known as Intel 64, i.e. 64-bit capable)

Or using lshw (as mentioned below by Rolf of Saxony), without sudo (just for grepping the cpu width):

lshw -class cpu|grep "^ width"|uniq|awk '' 

Note: you can have a 64-bit CPU with a 32-bit kernel installed .
(as ysdx mentions in his/her own answer, «Nowadays, a system can be multiarch so it does not make sense anyway. You might want to find the default target of the compiler»)

If you were running a 64 bit platform you would see x86_64 or something very similar in the output from uname -a

To get your specific machine hardware name run

which returns either 32 or 64

lscpu will list out these among other information regarding your CPU:

Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit . 

Utility dependence in shell — Unix & Linux Stack Exchange, I know that the «layer» architecture of any *nix OS is kernel-shell-utility («inner to outer»). It isn’t. Everything runs on top of the

How to find the processor / chip architecture on Linux

To display kernel architecture: uname -p

To display extended CPU details: cat /proc/cpuinfo

which returns output like this:

Architecture: i686 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 Vendor ID: GenuineIntel CPU family: 6 Model: 23 Stepping: 6 CPU MHz: 2670.000 BogoMIPS: 5320.13 L1d cache: 32K L1i cache: 32K L2 cache: 3072K 

To only get the architecture:

I’m surprised no one suggested uname -m . On my laptop, this gives armv7l , while uname -a gives me a monstrous two lines of text.

Unix / Linux — Getting Started, Unix Architecture · Kernel − The kernel is the heart of the operating system. · Shell − The shell is the utility that processes your requests. · Commands and

Determining Linux architecture from files

file vmlinuz-2.6.18-194.32.1.el5 will tell you what architecture the kernel was compiled for. If there’s a file /boot/config-2.6.18-194.32.1.el5 , it will give more information about the kernel compilation options, including the processor architecture.

ls /lib* will tell you what architecture the userland supports. For example, if there’s /lib/ld-linux.so.2 on an x86 system, then you have at least basic 32-bit support. If there’s /lib/ld-linux-x86-64.so.2 or /lib64/ld-linux-x86-64.so.2 then you have at least basic 64-bit (amd64) support. file /bin/ls will tell you what architecture utilities are compiled from (usually, the whole OS userland is compiled for one architecture, perhaps with additional libraries for another ABI for custom applications).

Читайте также:  Metasploit kali linux android

The kernel and the userland aren’t always the same architecture. Amd64 kernels can run 32-bit user programs (but not the converse). If you wanted to know whether you had a 32-bit or 64-bit edition of CentOS, check whether /bin/ls is a 32-bit or 64-bit program.

Just run file on the kernel image. It will show what architecture the binary was compiled as. file vmlinuz-2.6.18-194.32.1.el5 .

EDIT: Running file on the OP’s kernel doesn’t return the exact architecture, so the answer is not valid. I’ll try it on my kernels and see if I get more info.

Look for a /lib64 directory, if it’s there and not empty you probably had a 64 bit install, if it’s not then it was 32bit.

Is my linux ARM 32 or 64 bit?, There are several gradations, since you can run a 32-bit or mixed operating system on a 64-bit-capable CPU. See 64-bit kernel, but all 32-bit ELF executable

Источник

How to find architecture of my PC and Ubuntu?

Can someone please explain to me why both i386 & i686 ? What exactly is my PC architecture and what version of Ubuntu am I using (32bit or 64bit)?

is this a complete output from uname -a? I assume some fields like the kernel-name, kernel-version etc are missing.

5 Answers 5

Open a terminal try using uname -m command. This should show you the OS architecture.

If it gives any output like ix86 , where x is 3,4,5 or 6, Your OS is 32bit.

You can also see the Ubuntu architecture by Opening «System monitor» and going in the System tab.

enter image description here

Difference between hardware platform and Processor type:

There is a difference between the hardware platform (which is given by -i switch) to the CPU type (given by -p switch).

The hardware platform tells us which architecture the kernel is built for (may be optimized though for later versions). It can be a i386.

However the Processor type refers to the actual processor type of your machine such as i686 (P4 and later builds).

Thanks to Schotty of this this page. Here is an answer from Unix stackexchange site on the same topic, though I didn’t find the language enough clear (completely my fault).

On uname -m , it says i686,what does this mean? and my system monitor window says «Release 11.10(oneiric) Kernel Linux 3.0.0-26-generic GNOME 3.2.1» It doesn’t specifies any thing,like one shown in your pic.

@Ubunu_beginner, i386 and i686 are both part of the x86 family of processors. They just refer to the specific age of the processor platform. i386 is an older platform (early 90s?) used back when 386 processors were used in machines. Then this was upgraded to 486 processors, which was the same basic instruction set as 386 just faster and newer. 586 was another upgraded and was when the term Pentium started floating around. Eventually all of these got encapsulated into the x86 architecture name. i686 just refers to the 6th generation of x86 architecture.

Читайте также:  Epson m100 linux driver

@frank Thank you. Actually it was the gnome-system-monitor before gnome migrated to version 3. And I forgot the theme name. But You can use same system monitor by installing mate-system-monitor application

Use Anwar’s answer to find the architecture.

Now here is the explanation for your second part of the question.

Below is the uname output: In my case I have installed a 32 bit version. Both i386 and i686 refer 32 bit version. uname will return x86_64 in case if it is a 64 bit version.

$ uname -a Linux devav2 3.2.0-30-generic-pae #48-Ubuntu SMP Fri Aug 24 17:14:09 UTC 2012 i686 i686 i386 GNU/Linux 
  • Linux(-s) — OS/Kernel name
  • devav2(-n) — hostname
  • 3.2.0-30-generic-pae (-r) — kernel release
  • 48-Ubuntu SMP Fri Aug 24 17:14:09 UTC 2012 (-v) — Kernel version with time and SMP stands for symmetric multiprocessing, which means you have multiprocessor support
  • i686(-m) — Machine hardware name
  • i686(-p) — processor type
  • i386(-i) — hardware platform
  • GNU/LINUX(-o) — Operating System name

Below is grabbed from uname —help page which might help you to understand more about it.

 -a, --all print all information, in the following order, except omit -p and -i if unknown: -s, --kernel-name print the kernel name -n, --nodename print the network node hostname -r, --kernel-release print the kernel release -v, --kernel-version print the kernel version -m, --machine print the machine hardware name -p, --processor print the processor type or "unknown" -i, --hardware-platform print the hardware platform or "unknown" -o, --operating-system print the operating system 

Источник

How to find the processor / chip architecture on Linux

uname -m gives you back i686 or x86_64 depending on 32-bit or 64-bit Intel CPU, but I don’t have access to machines on non-Intel architectures.

x86_64 or amd64 would be 64-bit. i386, i486, i586, and i686 are 32-bit. Keep in mind however that those values are merely a reflection of the target the kernel was compiled for and not necessarily what the CPU is capable of.

6 Answers 6

To display kernel architecture: uname -p

To display extended CPU details: cat /proc/cpuinfo

uname (with any options) will only show the kernel architecture, not the physical CPU architecture. In other words, it will show which CPU the kernel was compiled for. But that could show i386 even when running on a x86_64 CPU.

which returns output like this:

Architecture: i686 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 Vendor ID: GenuineIntel CPU family: 6 Model: 23 Stepping: 6 CPU MHz: 2670.000 BogoMIPS: 5320.13 L1d cache: 32K L1i cache: 32K L2 cache: 3072K 

To only get the architecture:

I’m surprised no one suggested uname -m . On my laptop, this gives armv7l , while uname -a gives me a monstrous two lines of text.

A concise command producing information about the current machine is hostnamectl . Example output:

Static hostname: xxxx Icon name: computer-laptop Chassis: laptop Boot ID: b3a1f952c514411c8c4xxxxxxxxxxxx Operating System: Ubuntu 14.04.3 LTS Kernel: Linux 3.19.0-43-generic Architecture: x86_64 

It gives you the most basic information about your machine. Other commands like uname , lsb_release , or lscpu return more specific information.

Источник

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