- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to find out 32bit or 64bit binaries
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 01:16 AM
09-10-2002 01:16 AM
Hello there.
I wish to find out whether an executable is 64bit or 32bit. Can you please help me with the unix commands to find that?
Thank you,
Vimala.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 01:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 01:39 AM
09-10-2002 01:39 AM
Re: how to find out 32bit or 64bit binaries
Also tels you about the C compilers and the kernel version/architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 04:56 AM
09-10-2002 04:56 AM
Re: how to find out 32bit or 64bit binaries
Man getconf for more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 05:12 AM
09-10-2002 05:12 AM
Re: how to find out 32bit or 64bit binaries
cd
file * | grep executable | grep ELF-64
Will show 64 bit binaries. Anything else is only 32 bit (eg. PA-RISC1.1 or PA-RISC2.0)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 05:16 AM
09-10-2002 05:16 AM
Re: how to find out 32bit or 64bit binaries
It may/may not obvious in many cases. However the following can be used:
PA-RISC1.1 shared executable dynamically linked = 32 bit
ELF-64 shared object file - PA-RISC 2.0 (LP64) = 64 bit
In most cases if it does not explicitly state 64 bit, it's probably not. Another way to see a bit about how it was compiled is to use chatr. Look for references to 64 bit libaries.
# chatr /usr/bin/login
shared library list:
dynamic /usr/lib/libpam.1
dynamic /usr/lib/libsec.2
dynamic /usr/lib/libnsl.1
dynamic /usr/lib/libc.2
A 64 bit library might be:
/ux/libsobj_i80/libs/libc/shared_pa2_64/obj
Cheryl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 05:30 AM
09-10-2002 05:30 AM