Tuesday 10 July 2012

Linux Command to check 32 or 64 Bit OS

Linux Operating System can be checked by command that whether it is 32bit or 64bit Operating System. It can be checked by running following command.


# getconf LONG_BIT

 Example:

[root@qmailprd ~]# getconf LONG_BIT
32
[root@qmailprd ~]# uname -a
Linux qmailprd 2.6.32-220.el6.i686 #1 SMP Wed Nov 9 08:02:18 EST 2011 i686 i686 i386 GNU/Linux



In above example  Linux OS is 32 bit.


5 comments:

  1. It is a very helpful command to check OS bit.

    Thanks a lot.

    ReplyDelete
  2. hey, what does this output of uname -a command means??, Swapnil

    ReplyDelete
    Replies
    1. uname -a command shows kernel version and architecture of Linux.

      Delete
    2. ohh okie, so i686 is linux architecture then??? I thought thats some processor info.

      Delete
    3. Yes you are right it is based on processor architecture. This kernel will work on i386 and i686 architecture processor.

      Delete