Counting the Number of Files in a Directory Using the Command Line | Task

Ole Ersoy
Sep - 04  -  1 min

Scenario

We wish to count the number of files in the folder.

projects/fs-validatorts/src/lib/validators/

Approach

ls projects/fs-validatorts/src/lib/validators/ | wc -l