This Blog is to share our knowledge and expertise on Linux System Administration and VMware Administration

Tuesday, December 5, 2017

How do you findout the Hardware and CPU Architecture BIT value in Linux

Findout the Hardware and CPU Architecture BIT value in Linux 

We can check the Hardware and CPU Supporting architecture by using below commands in Linux.

lscpu - display information about the CPU architecture
[root@testserver ~]# lscpu | egrep -i "CPU|Arch"
Architecture:                 x86_64
CPU op-mode(s):        32-bit, 64-bit
[root@testserver ~]#

[root@testserver ~]# 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.18, stripped

 Print machine architecture.
[root@testserver ~]# arch

uname - print system information
 -m, --machine    print the machine hardware name
[root@testserver ~]# uname -m

-p, --processor   print the processor type or "unknown"
[root@testserver ~]# uname -p

-i, --hardware-platform   print the hardware platform or "unknown"
[root@testserver ~]# uname -i

getconf - get configuration values
[root@testserver ~]# getconf LONG_BIT

No comments:

Post a Comment