Delete Folder Based On Specific Size June 02, 2014 du -s * | while read size filename; do if [ $size -lt 1000 ]; then echo "$filename" is "$size" under 1MB; rm -rf "$filename"; fi; done Read more
How To Sort Folders Based on Folder Size Using Linux June 02, 2014 du -k * | sort -nr | cut -f2 | xargs -d '\n' du -sh Read more