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

What does f mean linux?

0 Answers  


You need to see the last fifteen lines of the files dog, cat and horse. What command should you use?

0 Answers  


Which command will show you free/used memory?

0 Answers  


Write a command that will do the following: -look for all files in the current and subsequent directories with an extension c,v -strip the,v from the result (you can use sed command) -use the result and use a grep command to search for all occurrences of the word orange in the files.

0 Answers  


What are the mv command options?

0 Answers  






What is the command can be used to check for file corruption?

0 Answers  


Why is unix used?

0 Answers  


How do I use nslookup in linux?

0 Answers  


How do makefiles work?

0 Answers  


how is the possible the "last 10 files present in the current directory and stores them in the file list".

9 Answers   Google,


Which two commands can you use to delete directories?

2 Answers  


The head command writes the how many lines of a file to screen?

0 Answers  


Categories