find larger files command

Thursday, January 24, 2013 at 10:37 PM

Check larger files:

find . -xdev -size +10000000c -exec ls -l {} \; 


find . -xdev -type f -size +1024 -ls | awk '{print $11, $7}' | sort -rn +1 | awk '{print $1, $2/1024/1024 "MB"}'


Check core files:


find . -xdev -name core -exec ls -l {} \;


List and remove the modified file


find . -xdev -mtime +60 -exec ls -l {} \;


find . -xdev -mtime +60 -exec rm -rf {} \;


Check disk usage:


du -sk * |sort -n


du -kx .| sort -n 


du -sxk * | sort -nb | tail


du -sk * | sort -nb | tail 


du -sk *


du -sk ./* 


du -sk . 


0 comments

Post a Comment

Solaris | Powered by Blogger | Entries (RSS) | Comments (RSS) | Designed by MB Web Design | XML Coded By Cahayabiru.com