Josh (the blog)

I’ve delivered simple, clear and easy-to-use services for 20 years, for startups, scaleups and government. I write about the nerdy bits here.


@joahua

Recursively count files in a directory

find . | wc -l

Outputs all files in current directory piped into the wc utility with -l switch (count number of newlines). The find command outputs directory names as well, so it’s not entirely accurate… but fairly close to.