Find Large Files
The purpose of this document is to fine large files in Linux.
Find files larger than 50M below /
Find files larger than 50M below /
find / -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' | sort -h
Find files modified within the last quarter day that are larger than 50M below /
Find files modified within the last quarter day that are larger than 50M below /
find / -type f -size +50000k -mtime -0.25 -exec ls -lh --time-style="long-iso" {} \; 2>/dev/null | awk '{ print $5 " \t " $6 " " $7 " : " $8 }' | sort -h
105G 2013-10-15 07:47 : /tank/prod/mysql-5.5.21-linux2.6-x86_64/data/ems/ems_msg_xheaders.ibd 120G 2013-10-15 07:47 : /tank/prod/mysql-5.5.21-linux2.6-x86_64/data/ama/user_policy.ibd 217G 2013-10-15 07:47 : /tank/prod/mysql-5.5.21-linux2.6-x86_64/data/ems/ems_msg_link.ibd 244G 2013-10-15 07:47 : /tank/prod/mysql-5.5.21-linux2.6-x86_64/data/ems/ems_msg_history.ibd
Find top 50 large files in /
Find top 50 large files in /
du -a / | sort -n -r | head -n 50