How to find directories that occupy a lot of space in ubuntu/debian

Sometimes it is useful to find the folders that occupy the most space in your disk. A simple command is the following:

sudo du -h /var | sort -nr| grep [0-9]M | head -20

This command provides in human readable form (-h) the top 20 directories in the /var folder.