读书人

lsof 应用日记

发布时间: 2012-11-22 00:16:41 作者: rapoo

lsof 使用日记


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/ 同上,但是会搜索目录下的目录

读书人网 >系统运维

热点推荐