---
title: Count files in a folder recursively
kind: blog
description: 'To count the number of files in the current folder and in all of its subfolders (recursively) :'
words: 19
readingMinutes: 1
created: '2009-05-29T22:29:18.000Z'
updated: '2026-06-27T21:03:45+02:00'
tags:
  - system-administration
---
```shell
find . -type f | wc -l
```

To count the number of files **and folders** in the current folder and in all of its subfolders (recursively):

```shell
find . | wc -l
```
