{"id":11864,"date":"2025-12-02T20:18:46","date_gmt":"2025-12-03T01:18:46","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=11864"},"modified":"2025-12-03T20:43:30","modified_gmt":"2025-12-04T01:43:30","slug":"lsof-scoped-to-multiple-pids","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=11864","title":{"rendered":"LSOF Scoped To Multiple PIDs"},"content":{"rendered":"<p>You can run lsof -p with a comma-delimited list of PIDs &#8212; but you can also transform the pidof output\u00a0<em>into<\/em> a comma separated list of PIDs. Which means you can run lsof for all of the PIDs associated with a specific program. In my case, it&#8217;s rsync &#8230;<\/p>\n<p>lsof -p &#8220;$(pidof rsync | tr &#8216; &#8216; &#8216;,&#8217;)&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can run lsof -p with a comma-delimited list of PIDs &#8212; but you can also transform the pidof output\u00a0into a comma separated list of PIDs. Which means you can run lsof for all of the PIDs associated with a specific program. In my case, it&#8217;s rsync &#8230; lsof -p &#8220;$(pidof rsync | tr &#8216; &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[632,294,2162,1188],"class_list":["post-11864","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-bash","tag-linux","tag-lsof","tag-shell"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11864"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11864\/revisions"}],"predecessor-version":[{"id":11865,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11864\/revisions\/11865"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}