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