{"id":257,"date":"2012-09-11T09:44:06","date_gmt":"2012-09-11T09:44:06","guid":{"rendered":"http:\/\/scunster.co.uk\/?p=257"},"modified":"2012-11-25T20:09:34","modified_gmt":"2012-11-25T20:09:34","slug":"disk-usage-search-large-files","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=257","title":{"rendered":"Disk Usage &#038; Search Large Files from terminal \/ shell"},"content":{"rendered":"<p>Commands to display disk usage and find specific sized files from terminal \/ shell<!--more--><strong>Find Large Files:<\/strong><br \/>\nTo find files over 100MB run the following:<br \/>\nfind \/ -size +102400k -exec du -hs {} \\;<\/p>\n<p><strong>Disk Usage:<\/strong><br \/>\nOnce you are connected to the server via SSH, run the following command:<br \/>\n# df -h<\/p>\n<p>This will output the usage of each partition in the server. To list the size of a specific directory, run the following command:<br \/>\n# du -sh \/home\/<\/p>\n<p>If you want to list all the subdirectory sizes under \/home, run the following command:<br \/>\n# du -sh \/home\/*<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Commands to display disk usage and find specific sized files from terminal \/ shell<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,11],"tags":[],"class_list":["post-257","post","type-post","status-publish","format-standard","hentry","category-linux","category-plesk"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=257"}],"version-history":[{"count":4,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/257\/revisions"}],"predecessor-version":[{"id":448,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/257\/revisions\/448"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}