Operating System - Linux
1826216 Members
2870 Online
109691 Solutions
New Discussion

linux equivalent of getconf KERNEL_BITS

 
SOLVED
Go to solution
Martha Mueller
Super Advisor

linux equivalent of getconf KERNEL_BITS

How can I tell whether a server is running 32 bit or 64 bit linux? In HP-UX, I would run the command getconf KERNEL_BITS. Is there an equivalent command for linux?

thanks
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: linux equivalent of getconf KERNEL_BITS

Most of the common Linux distributions are 32 bit. If you're running on a standard Intel Server its 32 bit.

If you are running on newer Itantium hardware, its 64 bit only. This does support 32 bit applications.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Martha Mueller
Super Advisor

Re: linux equivalent of getconf KERNEL_BITS

thank you for that good information, but how can I tell from a command line?
Steven E. Protter
Exalted Contributor
Solution

Re: linux equivalent of getconf KERNEL_BITS

file /proc/kcore

That gave the information. I don't know how official that is. Still poking around.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: linux equivalent of getconf KERNEL_BITS

file /boot/vlminux-....

Shows the same information.

No need for more points, it all should have been in the first post.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Martha Mueller
Super Advisor

Re: linux equivalent of getconf KERNEL_BITS

as you wish....this is just the information I was looking for...thank you very much.
Martha Mueller
Super Advisor

Re: linux equivalent of getconf KERNEL_BITS

.

Re: linux equivalent of getconf KERNEL_BITS

Hi Martha, the getconf command exists also for linux.
Try this:

getconf LONG_BIT

Lorenzo.

P.S.: I know I'm late but in Italy we say "Late is better than never"