利用linux判断elf文件是64位还是32位

readelf 命令,参数为-h

例如 文件名为python

>>>readelf -h python

得到的是ELF Header中的项Magic

第五个数 02时为64位,01时为32位

原文地址:https://www.cnblogs.com/tqing/p/10633482.html