Remove Small Files

  • dir
  • less
  • files
  • remove
  • bash
  • command
  • kbs
  • kilobytes

To list:

 

find -mindepth 1 -maxdepth 1 -type d -exec du -ks {} + | awk '$1 <= 9' | cut -f 2-

 

 

To remove:

 

find -mindepth 1 -maxdepth 1 -type d -exec du -ks {} + | awk '$1 <= 9' | cut -f 2- | xargs -d \\n rm -rf

 

 

mass-file-remover


All Articles