Count files in a directory

This will count the number of files in the current directory from a linux command line.
ls -l | grep '^-' | wc -l

Leave a Reply