the following command will search for files larger than: 20MB
and will search the whole system
find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $NF ": " $5 }'
the 20000k is the file size in kilobytes.
change that value to your own
to find users who have large files on their public_html:
find /home/*/public_html/ -type f -size +20000k -exec ls -lh {} \; | awk '{ print $NF ": " $5 }'
to search inside a folder:
find /path_to_folder/ -type f -size +20000k -exec ls -lh {} \; | awk '{ print $NF ": " $5 }'
replace path_to_folder with your real path.
No comments:
Post a Comment