05 May,2011 by Tom Collins
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
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |