知乎专栏 | 多维度架构 |
目录
file 命令将帮助你确定你所处理的文件类型。
[root@localhost ~]# file /bin/ls /bin/ls: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=bed150f5bac8514e69b3b98eb6fd3e75d6b277c8, stripped, too many notes (256) neo@MacBook-Pro-Neo ~ % file /bin/ls /bin/ls: Mach-O 64-bit executable x86_64