{"id":446,"date":"2015-07-18T08:48:00","date_gmt":"2015-07-18T03:18:00","guid":{"rendered":"http:\/\/www.cyberaka.com\/?p=446"},"modified":"2016-09-30T14:36:08","modified_gmt":"2016-09-30T09:06:08","slug":"disk-space-usage-in-a-folder-in-linux","status":"publish","type":"post","link":"https:\/\/www.cyberaka.com\/?p=446","title":{"rendered":"Disk space usage in a folder in Linux"},"content":{"rendered":"<p>I found out that my server had run out of space which was very strange given the fact that there is no heavy disk activity happening on the server. I used the following script to find out the offending files which were taking maximum space.<\/p>\n<p><code>for file in .\/*; do du -sh \"${file}\"; done<\/code><\/p>\n<p>or <\/p>\n<p><code>du -sh .\/*<\/code><\/p>\n<p>or<\/p>\n<p><code>du -ash .<\/code> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found out that my server had run out of space which was very strange given the fact that there is no heavy disk activity happening on the server. I used the following script to find out the offending files which were taking maximum space. for file in .\/*; do du -sh &#8220;${file}&#8221;; done or [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,24],"tags":[],"class_list":["post-446","post","type-post","status-publish","format-standard","hentry","category-linux-os","category-tips-and-tricks"],"_links":{"self":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=446"}],"version-history":[{"count":5,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/446\/revisions"}],"predecessor-version":[{"id":531,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/446\/revisions\/531"}],"wp:attachment":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}