Recursively counting files in a Linux directory
Asked 07 September, 2021
Viewed 386 times
  • 55
Votes

How can I recursively count files in a Linux directory?

I found this:

find DIR_NAME -type f ¦ wc -l

But when I run this it returns the following error.


  

find: paths must precede expression: ¦

21 Answer