Latest news from 5wire Networks

How to find large files on RedHat, CentOS or Fedora Linux?

Unfortunately in Linux there is no single command that lets you find large files, however with the help of the Find command we can create a list of large files.

In this example, we are looking for files over 100mb in the /home directory.

Search for files in a directory, and sub-directories

cd /home

Then, we will search for files within the directory that are equal to or over 100MB

find . -type f -size +100MB -exec ls -lh {} ; | awk '{ print $9 ": " $5 }'

Sometimes analyzing large files from a huge directory is easier done by posting the results straight into a text file

find . -type f -size +100MB -exec ls -lh {} ; | awk '{ print $9 ": " $5 }' > 100mb.txt

Without navigating to the directory you want to search for large files, you can replace the . with the directory listing

find /home -type f -size +100MB -exec ls -lh {} ; | awk '{ print $9 ": " $5 }' > 100mb.txt


Life time discount when you purchase your first order. Applies to Web Hosting, Reseller Hosting, and Cloud Servers.

Free Domain included on yearly Web Hosting plans.

Use code WEBOFF at the checkout!

Terms and Conditions apply. Voucher code is only valid for new customers.