How to see the directory size in Linux with command line

In this Video we cover the du command. du estimate’s the file space usage

First we look at the du mange page and then we cover some real world examples

Use du to list files size

du [file]

Make du human readable

du -h

Use du to list directory size (summarize)

du -sh /home

Use du to summarize directory’s under a parent

du -h –max-depth=1 /etc

Du one file system

du -sxh /mnt

Exclude files from du

du –exclude=’*.gz’