First we’ll use the du -sm command to give the results in MB:
Now we can see that the results aren’t sorted, so we’ll sort them by the sort -nr command, which sorts by numerical value in reverse. Finally, we’ll run the results through head -10 to get the top 10 results:
This is the command we are going to run:
Here’s an example of the output:
Useful stuff.
via Get the Top 10 Files or Directories on Ubuntu Linux – How-To Geek.