Hire me if you like: blake.irvin@gmail.com

Monday, February 04, 2008

Better 'du' for Solaris

This is the quick and dirty method I used to get better 'du' behavior easily when I use Solaris 10/Nevada. The script, which I placed in /usr/sbin as 'dueach' simply does a 'du -sh' on each child directory of the current working directory. Here's the script:

#!/bin/bash

for u in `ls -l | awk '{print $9}'`; do
du -sh $u
done

No comments:

Archive