Recursively Count Files in Directories With Linux

ls | wc -l

If you want a little more control over what you’re counting, you can use:

find DIR_NAME -type f | wc -l
© 2014 - 2021 · Home ·
3E2BdqbtEy2SkEEbXW8Bv5snVEMPYxjvn3