1. 首页
  2. Linux

Linux下如何查询当前进程打开了多少句柄

# 查看当前进程打开了多少句柄数

lsof -n|awk '{print $2}'|sort|uniq -c|sort -nr|more

# 根据ID号来查看进程名。

ps aef|grep ID号


TOP