How To Check Linux Version – Step To Step Guide


**Articles may contain links that I earn compensation for if clicked and you make a purchase. As an Amazon Associate, I earn from qualifying purchases. These earnings do not actually impact the price of the product or service.

If you want to Check Linux Version 32 Or 64 bit on your machine, there are several ways to do it. You need to know about the Operating system version you are using as having a good knowledge of your system is always recommended for many reasons, which include installing and running various packages and third-party applications. In this simple guide for Linux users, you will learn how to find the version of the OS you are using, whether is 32-bit or 64-bit; and whether you should Update Linux Kernel or not.

How To Check Os Version In Linux Command Line H2
The Five important Linux Version List of Commands that you must know to display your Current Linux Version of Operating System –

  1. “uame -a” Command

uame -a command will display the Operating system type in your Linux System, this command works on almost all the Linux/Unix systems

run this code, and you would be good to go:

$ uname -a

Linux tecmint.com 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

2. dpkg command

this command will lso display whether your OS is 32 bit or 64 bit, this only works on Debian and Ubuntu based distributions and it’s derivatives.

Run this command in your terminal:

$ dpkg --print-architecture

For 64-bit Operating System, you will get the following output:

amd64

If your OS is 32-bit, then the output will be:

i386

3.” getconf” command

along with the OS version, this command also displays the system configuration variables. Here is how you can do that:

$ getconf LONG_BIT

64
$ man getconf

4. “arch” Command

arch command will display your OS type just like the uname command. If the output is x86_64 then it is 64 bit OS, but 32-bit is output s i686 or i386

$ arch

x86_64

5. “file” Command

This command works with a special argument /sbin/init it will display the OS Type.

$ file /sbin/init

/sbin/init: ELF 64-bit LSB  shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=7a4c688d009fc1f06ffc692f5f42ab09e68582b2, stripped

 

There are other pragmatic methods to find the type of OS version your machine has, these were the five methods that required simple commands. you can comment if you want to know more methods to find out the OS version.

Difference Between 32 Bit And 64 Bit Linux H2

If you say in simple words, all modern Intel and AMD processors are 64-bit processors, this allows them to use large amounts of RAM without any workarounds, allocate more RAM to individual programs, mainly to games or demanding applications, and empty more advanced low-level security features.

64-bit processors have an upper hand over 32-bit processors as 32-bit software is compatible with the 64-bit computer, but this is not true another way around. But even if it looks that the 64-bit version is better than the 32-bit, but it is recommended to use a 32-bit OS.

If you want to know how to install and download Latest Linux Kernel Version you can post a comment in the comment section. Also, share this post with your friends to share knowledge.

Cover Image Credits