lsof (root用户使用)


lsof 可以查看一个目录被哪个进程在使用

列如:lsof /usr/libexec/colord

lsof -i 用以显示符合条件的进程情况  lsof -i:22