标签: binfmt

/proc/sys/fs/binfmt_misc/下的文件允许什么样的可执行格式?

我按照迈克尔的回复 来查看我的 Ubuntu 可以识别执行哪些可执行格式

$ ls -l /proc/sys/fs/binfmt_misc/
total 0
-rw-r--r-- 1 root root 0 Apr 19 16:11 cli
-rw-r--r-- 1 root root 0 Apr 19 16:11 jar
-rw-r--r-- 1 root root 0 Apr 19 16:11 python2.7
-rw-r--r-- 1 root root 0 Apr 19 16:11 python3.5
--w------- 1 root root 0 Apr 19 16:11 register
-rw-r--r-- 1 root root 0 Apr 19 16:11 status
Run Code Online (Sandbox Code Playgroud)

我从来没有故意改变那里的任何东西,这些文件是默认创建的,或者是在我安装其他一些程序时创建的。

$ cat /proc/sys/fs/binfmt_misc/cli
enabled
interpreter /usr/lib/binfmt-support/run-detectors
flags: 
offset 0
magic 4d5a
Run Code Online (Sandbox Code Playgroud)

这是一种什么样的可执行格式?我在 google 上搜索了“magic …

linux ubuntu executable binfmt

4
推荐指数
1
解决办法
1145
查看次数

标签 统计

binfmt ×1

executable ×1

linux ×1

ubuntu ×1