find directories having size greater than x MB

If I’m interpreting your question right, I think this might be what you want:

cd /home
du -sm * | awk '$1 > 1000'

This will show all directories in /home that contain more than 1000MB. If your version of du doesn’t support -m, you can use du -sk and adjust the awk bit to look for more than 1,000,000KB instead…

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)