Sharing Knowledge | System Admin Articles

Finding empty directories in Linux and UNIX

How to find empty directories on Linux or UNIX Server?

Here is the very easy command to find all the empty directories on a Linxu/UNIX server:

# find dir -empty -type d -depth -print

Note: The "-empty" parameter doesn't work on AIX.

Labels: Tips

My Profile PhotoAbout the Author

I'm Parthiban, An UNIX System Admin by Profession. I'm Experienced in Linux/Unix System Administration and Scripting. I have done lot of work on the infrastructure Mgmt side in Linux, UNIX and Windows system administration, Hardware, Storage and Data center. I'm blogging since 2008.
Follow Me On Twitter or On Facebook

0 Comments for "Finding empty directories in Linux and UNIX"

What do you think about this Article? Add your Opinion..!

Back To Top