{"id":252,"date":"2009-04-06T14:06:26","date_gmt":"2009-04-06T22:06:26","guid":{"rendered":"http:\/\/jim-zimmerman.com\/blog\/?p=252"},"modified":"2009-04-10T13:38:22","modified_gmt":"2009-04-10T21:38:22","slug":"lsof-reference","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=252","title":{"rendered":"Usefull lsof options"},"content":{"rendered":"<p>Various useful lsof options:<\/p>\n<p>To view files open by a particular PID:<br \/>\nlsof -p <em>pidnumber<\/em><\/p>\n<p>To show processes and the port they are running on.  This is a great command to find out not only process and port, but also the command and the PID.:<br \/>\nlsof -i -nP  # The -n does not resolve the IP addresses and ports to names.<\/p>\n<p>Source: http:\/\/sial.org\/howto\/debug\/unix\/lsof\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Various useful lsof options: To view files open by a particular PID: lsof -p pidnumber To show processes and the port they are running on. This is a great command to find out not only process and port, but also the command and the PID.: lsof -i -nP # The -n does not resolve the [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[24],"class_list":["post-252","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-lsof"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=252"}],"version-history":[{"count":3,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/252\/revisions"}],"predecessor-version":[{"id":255,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/252\/revisions\/255"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}