file命令

2019-04-22

file依赖文件
1、ldd /usr/bin/file
ldd /usr/bin/file
linux-vdso.so.1 => (0x00007ffde79f7000)
libmagic.so.1 => /usr/lib64/libmagic.so.1 (0x0000003fab200000)
libz.so.1 => /lib64/libz.so.1 (0x0000003faae00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003fa9e00000)
/lib64/ld-linux-x86-64.so.2 (0x000055f17918f000)
2、ldd file.exe
cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
cygmagic-1.dll => /usr/bin/cygmagic-1.dll (0x3ff9d0000)
cygz.dll => /usr/bin/cygz.dll (0x3ff3d0000)

3、file * -m /usr/share/misc/magic 显示指定magic文件

uname.exe: PE32+ executable (console) x86-64, for MS Windows
unexpand.exe: PE32+ executable (console) x86-64, for MS Windows
uniq.exe: PE32+ executable (console) x86-64, for MS Windows
unlink.exe: PE32+ executable (console) x86-64, for MS Windows
users.exe: PE32+ executable (console) x86-64, for MS Windows
uuidgen.exe: PE32+ executable (console) x86-64, for MS Windows
uuidparse.exe: PE32+ executable (console) x86-64, for MS Windows
vdir.exe: PE32+ executable (console) x86-64, for MS Windows
vi.exe: PE32+ executable (console) x86-64, for MS Windows
wc.exe: PE32+ executable (console) x86-64, for MS Windows
whatis.exe: PE32+ executable (console) x86-64, for MS Windows
whereis.exe: PE32+ executable (console) x86-64, for MS Windows
which.exe: PE32+ executable (console) x86-64, for MS Windows
who.exe: PE32+ executable (console) x86-64, for MS Windows
whoami.exe: PE32+ executable (console) x86-64, for MS Windows
whois.exe: PE32+ executable (console) x86-64, for MS Windows
xargs.exe: PE32+ executable (console) x86-64, for MS Windows
xmlcatalog.exe: PE32+ executable (console) x86-64, for MS Windows
xmllint.exe: PE32+ executable (console) x86-64, for MS Windows
xz.exe: PE32+ executable (console) x86-64, for MS Windows
xzdec.exe: PE32+ executable (console) x86-64, for MS Windows
yes.exe: PE32+ executable (console) x86-64, for MS Windows
/usr/share/misc/magic: data

分类:Linux | 标签: |

相关日志

评论被关闭!