Eloi Poch

Interesting things for a Web Developer

Linux :: Counts files recursively

The value 10000 for the maxdepth option isn’t very nice, maybe there are another way, but it works fine:

find targetdir/ -maxdepth 10000 -type f -follow | wc -l