I use this method to find files which grow – and trigger low disk space alerts.
There are cron jobs to maintain certain system logs and db2diag.log , but systems administrators execute packages for fix packs, monitoring agents for instance status, virus scanners and other utilities , which aren’t always configured or optimized.
The find command will search for files in a directory . In the example below, the parameters I’m using are:
-type f (look for regular files)
-ls (print current and statistics)
-sort (sorts )
And will list the largest 10 files in the path /var
find /var -type f -ls | sort -k 7 -r -n | head -10
Source:Jack Vamvas
Leave a Reply