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.

Share this

Related Posts

Previous
Next Post »

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