disk space command line folders code example
Example 1: ubuntu du sort by dir size
du -Sh /path/to/dir | sort -rh | head -20
Example 2: linux check used space in folder
du -h --max-depth=1
du -Sh /path/to/dir | sort -rh | head -20
du -h --max-depth=1