Is there a command in Linux that we can run on a compiled shared object(.so) in /usr/lib and know whether it is compiled for 64 bit or 32 bit system? (I mean to know ELF class, like ELFCLASS32)
You can use the file
command. E.g.:
[myuser@mycomputer]$ file /usr/lib/libcurl.so.4.1.1
/usr/lib/libcurl.so.4.1.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With