HostOnNet Blog

How to find the biggest files or directories on Linux

Looking for Linux Server Admin or WordPress Expert? We can help.

How to find the biggest files or directories on Linux

The best way to find large files or directories on your Linux system is to use the command line.

du -Sh | sort -rh | head -n 15 

It will print the top-15 biggest files located in the current directory (and its all sub-directories).

Sample Output:

find largest file

About Annie

I've been working in Technical Section for over 10 years in a wide range of tech jobs from Tech Support to Software Testing. I started writing blog for my future reference and useful for all.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.