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.
# 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.
It is a very helpful command to check OS bit.
ReplyDeleteThanks a lot.
hey, what does this output of uname -a command means??, Swapnil
ReplyDeleteuname -a command shows kernel version and architecture of Linux.
Deleteohh okie, so i686 is linux architecture then??? I thought thats some processor info.
DeleteYes you are right it is based on processor architecture. This kernel will work on i386 and i686 architecture processor.
Delete