count files
find . -type f | wc -l
ref: https://askubuntu.com/questions/34099/find-number-of-files-in-folder-and-sub-folders
count lines
git ls-files | xargs wc -l
Stick grep cpp |
in there before the xargs
to grab cpp info.
Use git ls-files -z | xargs -0 wc -l
if you have files with spaces in the name.
Works in git bash (windows) too.
ref: https://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository
check folder size
du -hs /path/to/directory # size of EACH folder
du -h | sort -h # sort
sudo du -h --max-depth=1 /path/to/directory # depth level