How can I know my linux os is 32 bit or 64 bit?
and How can i know my CPU is 32 bit or 64 bit in linux
machine environment.?

Answers were Sorted based on User's Feedback



How can I know my linux os is 32 bit or 64 bit? and How can i know my CPU is 32 bit or 64 bit in l..

Answer / sachinmali17

To get a clear idea about you OS (32bit or 64bit)
you can use following command,

root@ganesh ~]# file /usr/bin/file

/usr/bin/file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

[root@ganesh ~]#

Is This Answer Correct ?    10 Yes 1 No

How can I know my linux os is 32 bit or 64 bit? and How can i know my CPU is 32 bit or 64 bit in l..

Answer / venkat

getconf LONG_BIT

Is This Answer Correct ?    7 Yes 1 No

How can I know my linux os is 32 bit or 64 bit? and How can i know my CPU is 32 bit or 64 bit in l..

Answer / rajeev

#uname -a
we get the information about os
and Regarding CPU
#grep flags /proc/cpuinfo
if cpu is in
Long mode - 64 bit CPU
Real mode 16 bit CPU
Protected Mode is 32-bit CPU

Is This Answer Correct ?    7 Yes 6 No

How can I know my linux os is 32 bit or 64 bit? and How can i know my CPU is 32 bit or 64 bit in l..

Answer / ganeshkaliyappan

/etc/issuse or uname -a (i)
cpu info
cat /proc/cpuinfo

Is This Answer Correct ?    1 Yes 1 No

How can I know my linux os is 32 bit or 64 bit? and How can i know my CPU is 32 bit or 64 bit in l..

Answer / anand

egrep -c 'lm' /proc/cpuinfo

If output is nonzero then its a 64 bit system or 32 bit

Is This Answer Correct ?    0 Yes 0 No

How can I know my linux os is 32 bit or 64 bit? and How can i know my CPU is 32 bit or 64 bit in l..

Answer / mahesh gantayat

Os bit= uname -a or uname -m
Cpu bit= getconf WORD_BIT

Is This Answer Correct ?    0 Yes 0 No

How can I know my linux os is 32 bit or 64 bit? and How can i know my CPU is 32 bit or 64 bit in l..

Answer / varun

by command $arch

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux Commands Interview Questions

Explain Backup Managment commands in Linux.

5 Answers  


Which commands are used to set a processor-intensive job to use less cpu time?

0 Answers  


I have Laptop. I want to assign DHCP ip address, but in my Laptop having Wireless and with wire NIC cards, it is possible to assign reserve ip address for both NIC card, but same host name?

4 Answers   AOL,


Linux system monitoring Tools?

6 Answers   HCL, IBM,


what is the command to check network interfaces in our system? how to set etho to 10 full duplex speed?

2 Answers  






How do you execute more than one command or program from a single command line entry?

0 Answers  


How to root mirror in Linux? How to replace mirrored hdd in case of failure?

1 Answers   Siemens,


if i run ls command it will show me the junk output what is problem and how to resolve it

2 Answers   BPO,


You wish to print the file vacations with 60 lines to a page. Which of the following commands will accomplish this?

0 Answers  


What is gnu in linux?

0 Answers  


What is the pwd command?

0 Answers  


Enlist some linux to file content commands?

0 Answers  


Categories