为你的 macOS 添加 /proc
Jun 25, 2016
在很久以前,Amit Singh 编写了一个基于 MacFUSE 的 procfs,但是目前来说 MacFUSE 已经是死的透彻,它的代码也因为各种函数 deprecated 的关系无法正常编译.
然后呢,在查看他 repo 的 issue 的时候,发现有人 fork 了这个项目.
地址为:https://github.com/alexchandel/procfs
当然你需要先安装 osxfuse.
git clone https://github.com/alexchandel/procfs
cd procfs
make
编译完成之后就可以挂载了.
sudo mkdir /proc
sudo chown root:admin /proc
sudo ./procfs /proc -f
然后进入 /proc 试试,是不是熟悉的东西又回来了?
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.