To Count Number of files in Dir & Sub dir Leave a Comment / By admin / May 26, 2012 ls -laR | grep -c "^-.*"