在我的系统里:
root@NOTIFICATION:/# lsof | wc -l
24187
root@NOTIFICATION:/# lsof -u tomcat7 | wc -l
224
root@NOTIFICATION:/# lsof | grep tomcat7 | wc -l
20646发布于 2015-11-11 12:28:32
您有两种不同的选择:
lsof -u tomcat7列出属于tomcat7的打开文件,不管它们的名称如何。lsof | grep tomcat7列出以tomcat7命名的打开文件(或作为行中的字符串列出,无论是用户还是组),而不管其所有者如何。https://unix.stackexchange.com/questions/242329
复制相似问题