Get total number of files in current directory Excluding sub-directories $ ls -1 | wc -l Including sub-directories $ find . -type f -print | wc -l