Remove Empty Files

How to Find and Delete Empty Directories and Files in Unix

by Ramesh Natarajan on March 12, 2010

Question: How do I locate empty directories that doesn’t contain any files? Also, how do I find all empty files ( zero byte files ) in Linux?

Answer: You can use unix find command to get a list of all empty files and directories as explained below.

Also, refer to our earlier articles about unix find command examples – part 1 and find command examples – part 2.

-

{ 3 comments }