Have a look at
tripwire though. When configured properly, it will tell you when a file has been added or deleted.
This shell script will summarize the action of a directory that is passed via the command line:
Quote:
#!/bin/bash
FILES=`find $1 -type f 2>/dev/null | wc -l`
DIRS=`find $1 -type d 2>/dev/null | wc -l`
SIZE=`du -sh $1 2>/dev/null`
echo "The total number of files in $1: $FILES"
echo "The total number of directories under $1: $DIRS"
echo "The total size of all files in $1: $SIZE"
|
run like this:
$bash> ./summary.sc /home/user1
Run intermittenly, you can see part of what you are after.
It is far from acurate if not run as superuser because it only reports on dirs you have permissions to. All errors are output to /dev/null.
IHTH