- 论坛徽章:
- 0
|
想起来了.是file /path/to/file/command(注意,只写command不行!)
看下例子:
(1)32位OS机子
file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), for GNU/Linux 2.6.0, stripped
dolphin9@dolphin9-laptop:~$ file ls
ls: ERROR: cannot open `ls' (No such file or directory)
(2)64位OS上
file /bin/ls
/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped
[zlwang@photon ~]$ file ls
ls: cannot open (ls) |
|