lsof常用命令

1、lsof常用命令
lsof abc.txt 显示开启文件abc.txt的进程
lsof -p 1234 列出进程号为1234的进程所打开的文件
lsof -u root 列出某个用户打开的文件信息
lsof -i:8080 列出端口的监听情况
lsof -i @192.168.25.133 列出某个IP的连接信息

原文地址:https://www.cnblogs.com/lazy-sang/p/11514350.html