{"id":37,"date":"2009-08-15T03:59:38","date_gmt":"2009-08-15T03:59:38","guid":{"rendered":"http:\/\/www.adriangrigoras.com\/blog\/?p=37"},"modified":"2015-01-09T21:46:14","modified_gmt":"2015-01-09T21:46:14","slug":"count-the-files-open-by-a-program","status":"publish","type":"post","link":"https:\/\/adriangrigoras.com\/blog\/count-the-files-open-by-a-program\/","title":{"rendered":"Count the files open by a program"},"content":{"rendered":"<p>When you need to see how many files a program opened, you must run the following command:<\/p>\n<blockquote>\n<address><span style=\"font-family: arial; font-size: 13px;\"> lsof | grep my_program | wc -l<\/span><\/address>\n<\/blockquote>\n<p>Cheers,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you need to see how many files a program opened, you must run the following command: lsof | grep my_program | wc -l Cheers,<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,1],"tags":[],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry","category-linux","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/posts\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":1,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":212,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/posts\/37\/revisions\/212"}],"wp:attachment":[{"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}