Wednesday, 24 June 2015

How to Check If Your Linux Kernel is 32-bit or 64-Bit


It is important to know whether your Linux OS is 32-bit or 64-bit, as this information is required while doing various tasks. Most of the time while installing the packages, we need to know the architecture of the system.

In this post I will be sharing you some commands which will help you find the Operating System Architecture in a Linux Machine.

1. Using the 'uname -m' command

$ uname -m
x86_64

If you see this after executing the command, this means that your operating system is 64-Bit

$ uname -m
i686

If you see this after executing the command, this means that your operating system is 32-Bit

2. Using the 'arch' command

$ arch
x86_64

If you see this after executing the command, this means that your operating system is 64-Bit

$ arch
i686

If you see this after executing the command, this means that your operating system is 32-Bit

3. Using the 'getconf LONG_BIT' command

$ getconf LONG_BIT
64

If you see this after executing the command, this means that your operating system is 64-Bit

$ getconf LONG_BIT
32

If you see this after executing the command, this means that your operating system is 32-Bit

No comments:

Post a Comment