Find all empty files in a UNIX filesystem

Contributor Icon Contributed by qmchenry Date Icon September 4, 2003  
Tag Icon Tagged: UNIX

Using the find command, locate all files with zero length


To find all empty files on the entire system,

find / -size 0 -print

To find all empty files from the current directory down,

find . -size 0 -print

Previous recipe | Next recipe |
 

 
close Reblog this comment
blog comments powered by Disqus