Wednesday 6 June, 2007

Finding large files in your linux box

My HD was reaching 100% usage now and then. So, I want to find large files in my box and delete them. I don't know scripting. Google made me to reach here.
find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
In some linux boxes, we may need to change the parameter $9 for print as $8 or something else
Got the above one from this place
Just thought of putting it here

No comments: