Q. How do I check whether a directory is empty or not under Linux / UNIX using a shell script? I’d like to take some action if directory is empty. A. There are many ways to find out if a directory is empty or not under UNIX / Linux bash shell. You can use find [...]
{ 19 comments }
