Count files in a directory

To count all files in the current directory,

shell> ls -l | wc -l

To cound all files in the current folder and all sub directories,

shell> find . | wc -l

Leave a Reply

Your email address will not be published. Required fields are marked *