Identifying disk space usage on your Ubuntu system

To find out your root device disk usage, run the command

df -h

To list the top 10 resources which consume space in a directory, run the command

du -sk --block-size=M * | sort -nr | head -10

Leave a Reply

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