Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 is DISM command?

0 Answers  


What is cmake in linux?

0 Answers  


How do you create a file?

0 Answers  


In /boot/grub/grub.conf file there is a line kernel /vmlinuz-version ro root=/dev/sda2, What is the meaning of "/" before vmlinuz? Pls explain?

1 Answers   HCL,


What is Data Command?

0 Answers  


How do I change shell in linux?

0 Answers  


Which command puts a script to sleep untill a signal is recieved?

0 Answers  


What is 9 in kill?

0 Answers  


How do display error messages instantly when command fails?

2 Answers   Satyam,


Does cp overwrite?

0 Answers  


Is cmake only for c++?

0 Answers  


What is iptables command in linux?

0 Answers  


Categories