Linux 下文件句柄数的查询学习

1. 查看 所有进程的 打开的句柄数

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

效果为:

2. 查看某一个进程内的 文件信息

lsof -p pid

效果为:

参考学习

https://blog.csdn.net/gumingyaotangwei/article/details/24973773

https://jingyan.baidu.com/article/c910274b840b49cd361d2d12.html

猜你喜欢

转载自www.cnblogs.com/jinanxiaolaohu/p/11043532.html