Check disk usage on Linux system or Ubuntu

Display the disk space usage on all mounted filesystems. -T option shows the filesystem type.

df -h -T

 

Display the size of a particular directory and it’s sub directories:

du -ch | grep total
du -sh

c for total
s summarize
h human-readable

Show size of each directories

du -sh ./*

 

Leave a Comment

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