Linux - find largest files

30 January,2010 by Tom Collins

Quite often I get a monitoring message stating the drive space is filling , I'll execute some DB2 clean up scripts , but still the problem persists. This little script quicly finds the largest 20 files on a Linux server , execute it from the command line.


du -a /my_folder | sort -n -r | head -n 20


 Related Posts

DB2 Linux history command

db2diag.log file delete on Linux and DB2

Author: Rambler(


Verify your Comment

Previewing your Comment

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

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.


Post a comment on Linux - find largest files

Comments are moderated, and will not appear until the author has approved them. | DB2 Performance Tuning | DBA DB2:Everything | FAQ | Contact | Copyright