verify folder size linux code example
Example 1: count files recursively linux
find DIR_NAME -type f | wc -l
Example 2: see how large a directory is linux
# du -a /home | sort -n -r | head -n 5
find DIR_NAME -type f | wc -l
# du -a /home | sort -n -r | head -n 5