{"id":6622,"date":"2017-04-10T13:00:28","date_gmt":"2017-04-10T05:00:28","guid":{"rendered":"http:\/\/rmohan.com\/?p=6622"},"modified":"2017-04-10T13:00:28","modified_gmt":"2017-04-10T05:00:28","slug":"find-large-files-on-linux","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6622","title":{"rendered":"find large files on Linux"},"content":{"rendered":"<p><strong>Find large files on Fedora \/ CentOS \/ RHEL<\/strong><\/p>\n<p>Search for big files (50MB or more) on your current directory:<\/p>\n<pre>find .\/ -type f -size +50000k -exec ls -lh {} ; | awk '{ print $9 \": \" $5 }'<\/pre>\n<p>Output:<\/p>\n<pre>[root@my.server.com:~]pwd\r\n\/home\r\n\r\n[root@my.server.com:~]find . -type f -size +50000k -exec ls -lh {} ; | awk '{ print $9 \": \" $5 }'\r\n.\/user1\/tmp\/analog\/cache: 79M\r\n.\/syscall8\/public_html\/wp.zip: 146M\r\n.\/bob54\/public_html\/adserver\/var\/debug.log: 86M\r\n.\/marqu35\/logs\/adserver.site.com-May-2014.gz: 70M\r\n.\/astrolab72\/tmp\/analog\/cache: 75M\r\n<\/pre>\n<p>Search in my \/var directory for 80MB or max file size:<\/p>\n<pre>find \/var -type f -size +80000k -exec ls -lh {} ; | awk '{ print $9 \": \" $5 }'<\/pre>\n<p><strong>Find large files on Debian \/ Ubuntu Linux<\/strong><\/p>\n<p>Search in current directory:<\/p>\n<pre>find .\/ -type f -size +10000k -exec ls -lh {} ; | awk '{ print $8 \": \" $5 }'<\/pre>\n<p>Search the \/home directory:<\/p>\n<pre>find \/home -type f -size +10000k -exec ls -lh {} ; | awk '{ print $8 \": \" $5 }'<\/pre>\n<p>If you know other ways to quickly find large files on Linux please share it with us.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Find large files on Fedora \/ CentOS \/ RHEL<\/p>\n<p>Search for big files (50MB or more) on your current directory:<\/p>\n<p> find .\/ -type f -size +50000k -exec ls -lh {} ; | awk &#8216;{ print $9 &#8220;: &#8221; $5 }&#8217; <\/p>\n<p>Output:<\/p>\n<p> [root@my.server.com:~]pwd \/home [root@my.server.com:~]find . -type f -size +50000k -exec ls -lh {} ; | [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6622"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6622"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6622\/revisions"}],"predecessor-version":[{"id":6623,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6622\/revisions\/6623"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}