HostOnNet Blog

How to find the biggest files or directories on Linux

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.