Linux 4 All

Best Linux tricks source

This is a small shell script to get all files greater than 100M starting from “/”. Replace SIZE and FS values to fit your needs.

SIZE=100M; FS='/'; find $FS -size +$SIZE -exec du -hs {} \; 2>/dev/null | sort -nrk 1,2

Strip html tags arrow-right
Next post

arrow-left How to find the largest 50 files
Previous post

Leave a Reply

Your email address will not be published. Required fields are marked *