{"id":249,"date":"2009-08-19T15:26:38","date_gmt":"2009-08-19T20:26:38","guid":{"rendered":"http:\/\/muthii.com\/blog\/?p=249"},"modified":"2009-08-19T15:32:56","modified_gmt":"2009-08-19T20:32:56","slug":"find-files-larger-than-in-linux","status":"publish","type":"post","link":"https:\/\/muthii.com\/blog\/?p=249","title":{"rendered":"Find files larger than * in linux"},"content":{"rendered":"<p>I found this neat cmd to use when trying to find files larger than certain sizes e.g<\/p>\n<pre>find \/ -type f -size +200M<\/pre>\n<p>If you want files less than that size you can do<\/p>\n<pre>find \/ -type f -size -200M<\/pre>\n<p>For other ways to use the cmd check out <a title=\"Search a drive for large files in Linux\" href=\"http:\/\/fredforfaen.wordpress.com\/2007\/06\/10\/search-a-drive-for-large-files-in-linux\/\" target=\"_blank\">this<\/a> post where i got the info from.<\/p>\n<p>This other cmd finds files larger than 10M and calculates their sizes too.<\/p>\n<pre>find \/ -size +10240000c -exec du -h {} \\;<\/pre>\n<p> Remember in all cases to change &#8220;\/&#8221; to the location you want to search for the files e.g &#8220;\/home\/username&#8221;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found this neat cmd to use when trying to find files larger than certain sizes e.g find \/ -type f -size +200M If you want files less than that size you can do find \/ -type f -size -200M For other ways to use the cmd check out this post where i got the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/muthii.com\/blog\/?p=249\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Find files larger than * in linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,83],"tags":[],"_links":{"self":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/249"}],"collection":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=249"}],"version-history":[{"count":4,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/249\/revisions"}],"predecessor-version":[{"id":251,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/249\/revisions\/251"}],"wp:attachment":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}