, ,

Disk space – using du to analyse tree and file sizes in Linux

Size Of Directory and Disk Space


du -s .archived/

du -sk

k: result in KB
x: expands but only on the local file system (does not follow NFS Links)

du -xh | egrep "^[0-9\.]+[GT]"

# Using root dir to start
du -xh / |egrep "^[0-9\.]+[GT]"

# Flat @directory level
du -Sh |egrep "^[0-9\.]+[GT]"

du -x --max-depth=1 –h

du -Shx |egrep "^[0-9\.]+[GT]"

# Free Disk Space
df -vh

References

tbd