<strong>10）lsof</strong></p>
<p>可以列出打开了的文件。</p>
<pre data-enlighter-language="shell" class="EnlighterJSRAW">[<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="60120f0f14203228252c33363255">[email&#160;protected]</a> ~]# lsof | grep TCP
httpd       548    apache    4u     IPv6   14300967    TCP *:http (LISTEN)
httpd       548    apache    6u     IPv6   14300972    TCP *:https (LISTEN)
httpd       561    apach