The command find is quite used to Linux.
One of these uses is for finding files and folders that are empty.
Finding empty files:
1 | find . -type f -empty |
Finding empty directories:
1 | find . -type d -empty |
Counting them is by using pipes, as in the examples below:
1 2 | find . -type f -empty | wc -l find . -type d -empty | wc -l |
We can do the same for those which are not empty.
1 2 | find . -type f -not -empty find . -type d -not -empty |
These are just some simple examples. Can you write more about this using contact page.