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
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
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。