How to delete many 0 byte files in linux?

前端 未结 10 1991
孤街浪徒
孤街浪徒 2020-12-07 11:19

I\'ve a directory with many number of 0 byte files in it. I can\'t even see the files when I use the ls command. I\'m using a small script to delete these files but sometime

10条回答
  •  旧巷少年郎
    2020-12-07 11:57

    If you want to find and remove all 0-byte files in a folder:

    find /path/to/folder -size 0 -delete
    

提交回复
热议问题