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
This will work completely fine. Simple short. If you want to count the number of files present in a folder.
ls | wc -l