You can use the getconf linux command as follows:
$ getconf LONG_BIT
the will return the Number of bits in a type long int. If the value is 32 then you have a 32-bit Linux OS, otherwise it is a 64-bit OS
References
- getconf(1) - Linux man page (source: linux.die.net)
- getconf Command (source: IBM AIX documentation)
- How can we find out if the Linux OS installed is 32-bit or 64-bit? (source: www.redhat.com)
No comments:
Post a Comment