I want to check if my software is 64 bit or 32 bit (not the OS). This software is an executable file, and when I check it, no information is given if it is 64-bit or 32-bit.
How do I check if my software is 64-bit or 32-bit?
I want to check if my software is 64 bit or 32 bit (not the OS). This software is an executable file, and when I check it, no information is given if it is 64-bit or 32-bit.
How do I check if my software is 64-bit or 32-bit?
You can use the
file
command to check out what format has that executable. For example:This simple command will show you whether the executable file is 32 bit(i386) or 64 bit(amd64) .
Syntax:
Example:
Explanation:
dpkg -S
command grabs the package in which the file actually belongs to.apt-cache show package
command will shows the details about the package.From that details, awk grabs only the Architecture part and redirects it to stdout.OR
You can try this command also,