Count the number of files in a Directory / Sub-Directories

/ Published in: Bash
Save to your folder(s)

This command will count the number of files in the given directory and sub-directories.

Copy this code and paste it in your HTML
  1. ls -1R /path/to/directory | wc -l

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.