Operating System - HP-UX
1832990 Members
2609 Online
110048 Solutions
New Discussion

Command to know if OS is 32 or 64 bit

 
Harishs
Occasional Advisor

Command to know if OS is 32 or 64 bit

Hi,
Could you please let me know the command on HP UX 11.23 to know if OS is 32 or 64 bit.

Many Thanks

Harish
5 REPLIES 5
Robert-Jan Goossens_1
Honored Contributor

Re: Command to know if OS is 32 or 64 bit

Hi Harish,

# file /stand/vmunix

/stand/vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64)


Regards,
Robert-Jan
Pete Randall
Outstanding Contributor

Re: Command to know if OS is 32 or 64 bit

getconf KERNEL_BITS

getconfHW_32_64_CAPABLE will tell you if the hardware is capable of 64 bits.


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: Command to know if OS is 32 or 64 bit

Hi:

# getconf HW_CPU_SUPP_BITS

...will show what you *can* run, whereas

# getconf KERNEL_BITS

...shows what you *are* running.

Regards!

...JRF...

Harishs
Occasional Advisor

Re: Command to know if OS is 32 or 64 bit

Many Many Thanks !!!

It solved my purpose.
rick jones
Honored Contributor

Re: Command to know if OS is 32 or 64 bit

Actually, 11.23 is always a 64-bit kernel. There is no 32-bit 11.23 kernel.

A 64-bit kernel can run both 64 bit and 32-bit applications.

The getconf KERNEL_BITS is still the "right" way to go of course, but I thought I'd point-out that bit of trivia.

Another bit of trivia is that *any* HP-UX 11.X kernel on a PA-8500 or later CPU - including Itanium - is always a 64-bit kernel. The only time an 11.X kernel might be 32-bit is when the CPU is PA-8200 or earlier.
there is no rest for the wicked yet the virtuous have no pillows