Linux server largest files

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

Related Posts

DB2 Linux history command

Locate the DB2 connection port number on Linux

Author: Rambler(http://www.dba-db2.com)

Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

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.

Working...

Post a comment on Linux server largest files

Comments are moderated, and will not appear until the author has approved them.


dba-db2.com | DB2 Performance Tuning | DBA DB2:Everything | FAQ | Contact | Copyright