WSL 想让 linux 下也能用 windows 的 exe 文件,比如你可以 code . 在此目录下打开 VSCode,这比较有用。
如果想向 binfmt_misc 注册进 qemu 的一些规则,不能用 systemd 模式,因为 wsl 没有用这个,而是用的 binfmt-support.service
$ systemctl status binfmt-support.service
● binfmt-support.service - Enable support for additional executable binary formats
Loaded: loaded (/lib/systemd/system/binfmt-support.service; enabled; vendor preset: enabled)
Active: active (exited) since Fri 2024-03-22 23:12:01 CST; 14min ago
Docs: man:update-binfmts(8)