Find Large Files in Linux

This doesn’t work perfectly, but I often use it to start tracking down disk hogs:

To return the 10 largest items in a given directory:

du -cksh * |sort -rn |head -11

Some times it’s helpful to view all

du -cksh * |sort -rn

If someone has a better approach, please comment.

Find Failed Login Attempts in Logs

Looking for a log to show you failed login attempts to your Linux machine? Look in:


You can access it by running:


It’s similiar to the wtmp log of user login/logouts and the utmp log showing who is currently logged in.

Files > 50M older than 4 years

find /somedir -type f -size +50000k -mtime +1095 -exec ls -lh {} \; | awk '{ print  $6 "/" $8 " " $9 $10  $11 ": " $5 }'