SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the command find to do this. We can match files with -type f, and match empty files using -size 0. Then we can delete the matches with -delete.
find
-type f
-size 0
-delete
find . -type f -size 0 -delete