查看linux機器是32位還是64位的方法:
file /sbin/init 或者file /bin/ls
/sbin/init: ELF64-bitLSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
查看linux版本
?cat /etc/issue? ? ? ? ? ? ? ? ?適用于所有的linux版本
cat /etc/redhat-release? ??適用于redhat系列的系統(tǒng)