lsof 使用日记

来源:互联网 发布:为什么淘宝订单都没了 编辑:程序博客网 时间:2024/06/05 11:35


lsof abc.txt 显示开启文件abc.txt的进程 

lsof -i :22 知道22端口现在运行什么程序 
lsof -c nsd 显示nsd进程现在打开的文件 
lsof -g gid 显示归属gid的进程情况 
lsof +d /usr/local/ 显示目录下被进程开启的文件 
lsof +D /usr/local/ 同上,但是会搜索目录下的目录
原创粉丝点击