Let us learn how to check Linux 32 or 64-bit in command line and how to check OS version in Linux using command line?
Check linux 32 or 64-bit command line
To find out if your Linux installation is 32 bit or 64 bit, run the command:
uname -i
Uname -i gives you the hardware-platform. If you want to get more information, you can use uname -a to get all the system information. It will also tell you if your system is 32-Bit or 64-Bit.
uname -a
NOTE: x86_64 is 64 bit and i386, i686 is 32 bit.
Check OS version in Linux using command line
To check OS version and to know the operating system version on Linux Ubuntu, run the following commands in terminal:
lsb_release -a
cat /etc/os-release
To view your Linux OS version and all the relevant information, run the following command in Terminal:
hostnamectl
If you want to get Linux Kernel info, run:
uname -r
or
uname -v
Knowing OS version is important to install the right version of the software.