Trang Huynh
Member
How do I delete a zero KB file in Linux?
Answer
If no files to search are specified, the
current directory (.) is used. 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 .
Answer
If no files to search are specified, the
current directory (.) is used. 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 .