Casual Info About How To Check If Linux Is 32 Or 64 Bit
The below commands were performed on ubuntu, however, will be applicable for centos, debian, linux mint and other linux distros.
How to check if linux is 32 or 64 bit. If you shift 1 left by 32 and you get 1, your system is 32 bit. If you shift 1 left by 64 and you get 1, your system is 64 bit. There is a program called uname installed on linux that can show us if the linux system is 32 or 64 bit.
This attribute makes it ideal for determining the format of a library being used. Let us run a format check on some libraries inside the /usr/lib directory. There are a few ways to determine the machine architecture of a linux system.
Just type in the following. In other words, if echo $((1<<32)) gives 1 then your. To find out if your linux installation is 32 bit or 64 bit, run the command:.
If you shift 1 left by 64 and you get 1, your system is 64 bit. In other words, if echo $((1<<<strong>32</strong>)) gives 1 then your system is 32 bit. If you have a little knowledge about shell script programming, you will like to make a simple script for later use.