Summary of disk usage using du
Using the -s option on the disk usage command du gives a summary of the disk usage by the directories below.
du * -h -s
Run this on the / directory might give something like:
--@--#du / -h -s
du: `media/cdrom': No such file or directory
du: `media/floppy': No medium found
Using an additional -x option means du will not read from mounted file systems. Handy to avoid the /mnt directory.Back to GNU/Linux Command Line Tips