Count Files in Directory in Terminal on Mac - VicPhanDevOps/mac GitHub Wiki • Type ls | wc -l and press the return key to count the files in the directory. • ⚠️ **GitHub.com Fallback** ⚠️