How to Check if Your Linux System is 32-bit or 64-bit

Linux and Mac OS based issues
Post Reply
RescuePC
Posts: 123
Joined: Wed Apr 04, 2012 8:48 pm

How to Check if Your Linux System is 32-bit or 64-bit

Post by RescuePC »

How to Check if Your Linux System is 32-bit or 64-bit

A few commands to see what bit you are running

-bash-4.1# arch
x86_64

-bash-4.1# uname -a
Linux vmlinux.qad.com 2.6.32-504.23.4.el6.x86_64 #1 SMP Tue Jun 9 20:57:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

-bash-4.1# 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

Cheers
Rescue PC
Post Reply