Fast Tip #1 – show the 100 biggest files [linux]

I will be starting a new serie, where I will give fast and simple tips, but sometimes that makes a whole difference.

The first tip is: How to show the 100 biggest files from a directory and its subdirectories.

$ du -a -h | sort -h -r | head -n 100 

If you want to know more about the command du, You can see its help page with the command:

$ du --help 

Leave a Reply

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

*

code