The following command would help you find empty files & directory find . -type d -empty — for directory find…