Tech Support Notes

du

du -h --max-depth=1  
du -hs * 2> /dev/null|grep '^[0-9.]\+[MG]'

df examples

To see the Filesystem type as well as total usage use the -h and -T flags combined with --total

[hyperion] (~) >>> df -hT --total
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/xvda2    ext3     25G  3.3G   20G  15% /
tmpfs        tmpfs    2.9G     0  2.9G   0% /dev/shm
/dev/xvda1    ext3    248M   77M  160M  33% /boot
total            -     28G  3.4G   23G  13%

Same thing but for inodes

[hyperion] (~) >>> df -hTi --total
Filesystem    Type    Inodes   IUsed   IFree IUse% Mounted on
/dev/xvda2    ext3      1.6M    138K    1.5M    9% /
tmpfs        tmpfs      729K       1    729K    1% /dev/shm
/dev/xvda1    ext3       64K      50     64K    1% /boot
total            -      2.4M    138K    2.2M    6%

inodes

for i in *; do echo -e "$(find $i | wc -l)\t$i"; done | sort -n  
df -hi