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 Reply

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

Scroll to top