How to calculate amount of files and dictionaries in linux

 

The amount of dictionaries

ls -lR | grep ^d | wc -l

The amount of files

find /data -type f | wc -l

Leave a Reply