|
I did something like this, a while ago...
I used to have a script that run in init, and it used two commands: one created a file
touch /home/bruno/diskusage
and owned the file to me
chown bruno:users
then, I pumped the output of some reporting commands to it, with date and some formatting, to ease my life..:
echo "********" >> /home/bruno/diskusage
date >> /home/bruno/diskusage
df -B MB >> /home/bruno/diskusage
and also, some other aspects of the system:
hdparm /dev/hda |grep dma #with lines for every ide device on my machine...
Notice that if you pump with >> the command won't erase what's in the file, instead it will append. So, what you have is a log formatted like this:
********
Date 12/08/2004 etc etc...
output of df
output of hdparm
and so on...
************
To sort directories you'll have to figure...
|