For the total number of files:$ find . -type f | wc -lFor the total number of directories:$ find . -type d | wc -lTo get sizes, du is the obvious choice, but youcould do the ridiculous:$ find . -type f -exec cat {} \; | wc -c