1. 查看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
如果显示 64-bit 则为64位;
file /sbin/init
/sbin/init: ELF32-bitLSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux
2.2.5, dynamically linked (uses shared libs), stripped
如果显示为32 bit 则为32bit;
原文地址:https://www.cnblogs.com/wy20110919/p/9040973.html
时间: 2024-10-07 23:39:40