how to check open file without lsof

拥有回忆 提交于 2019-12-03 14:06:53

Install busybox, it has a lsof command.

Poor man's lsof is to execute

ls -l  /proc/[process id]/fd

Still, you need to be root.

Thanks mike jones and Joqn for the tip with poor man's lsof. I used it in the following on busybox (synology nas) to list the fd directories grouped under each process:

  for p in [0-9]*; do ls -l /proc/$p/fd ;done 
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!