Operating System - HP-UX
1833494 Members
2710 Online
110052 Solutions
New Discussion

Re: Regarding Checking for 64-bit version

 
SOLVED
Go to solution
yck
Advisor

Regarding Checking for 64-bit version

Hi all,
Do HPUX have any command to check whether a file (any file like exe file or shared library) is in 64-bit version or 32-bit version?

Thanks.
ck
2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: Regarding Checking for 64-bit version

You should be able to use the 'file' command to check and see what a particular filename is. It should say what type of executable.

# file file_name

For example

# file udt
udt: ELF-64 executable object file - PA-RISC 2.0 (LP64)

So the above is a 64 bit executable file.
Trond Haugen
Honored Contributor

Re: Regarding Checking for 64-bit version

If you want to check if the OS is 64bit you can use 'getconf KERNEL_BITS'.
Also note that "in" a 64 bit OS you can/will find 32bit programms/files.

Trond
Regards,
Trond Haugen
LinkedIn