Check ubuntu version and bitness

From: http://blog.chinaunix.net/uid-25436678-id-3855683.html

 

Check cpu information
cat /proc/cpiinfo

Check ubuntu version:

cat /etc/issue

Check whether the system is 32-bit or 64-bit
Method 1:
#Check the number of digits of long, return 32 or 64 getconf LONG_BIT Method 2: #Check file information, including 32-bit is 32-bit, including 64-bit is 64-bit file /sbin/init
 


Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326818513&siteId=291194637