Check whether the system is a 32-bit or 64-bit command on linux
Today, what the editor shares with you is to check whether the system is 32-bit or 64-bit on linux. Many people don't know much about it. Today, in order to give you a better understanding of the commands for viewing the system on linux, I summed up the following contents. Let's move on. I'm sure you'll get something.
Method 1:getconf LONG_BIT to view
[root@DB-Server ~] # getconf LONG_BIT
Method 2:uname command to view
As shown in the following example, x86room64 represents a 64-bit system and i686 i386 represents a 32-bit system. I686 is only a subset of i386. Cpu support starts with Pentium 2 (686). Previous models do not support it.
[root@DB-Server] # uname-aLinux DB-Server 2.6.18-194.el5 # 1 SMP Tue Mar 16 21:52:43 EDT 2010 i686 i686 i386 GNU/Linux [root@DB-Server] # uname-m
The above is to check the details of whether the system is 32-bit or 64-bit on linux, and do you get anything after reading it? If you want to know more about it, welcome to the industry information!