Find all empty files in a UNIX filesystem

Contributor Icon Contributed by qmchenry  
Tag Icon Tagged: UNIX  

Using the find command, this locates 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

 

No Comments -


No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment -