{"id":371,"date":"2018-09-10T12:55:33","date_gmt":"2018-09-10T10:55:33","guid":{"rendered":"https:\/\/blog.chloesoe.ch\/?p=371"},"modified":"2018-09-27T16:46:16","modified_gmt":"2018-09-27T14:46:16","slug":"find-open-files","status":"publish","type":"post","link":"https:\/\/blog.chloesoe.ch\/?p=371","title":{"rendered":"find open files"},"content":{"rendered":"<p>If you e.g. can't unmount because a file is busy, then you could find it with this command:<\/p>\n<pre><code>lsof | grep &lt;path&gt;\n<\/code><\/pre>\n<p>Replace <code>&lt;path&gt;<\/code> with your mount point, so you see which program uses your mount point.<\/p>\n<p><code>lsof<\/code> has this columns:<\/p>\n<pre><code>COMMAND     PID   TID             USER   FD      TYPE             DEVICE  SIZE\/OFF       NODE NAME\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you e.g. can&#8217;t unmount because a file is busy, then you could find it with this command: lsof | grep &lt;path&gt; Replace &lt;path&gt; with your mount point, so you see which program uses your mount point. lsof has this columns: COMMAND PID TID USER FD TYPE DEVICE SIZE\/OFF NODE NAME<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-371","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/posts\/371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=371"}],"version-history":[{"count":1,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/posts\/371\/revisions"}],"predecessor-version":[{"id":372,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/posts\/371\/revisions\/372"}],"wp:attachment":[{"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}