Determine the File Count in Unix Directory

by Mark Marucot on May 21, 2008

To determine the number of files in the Unix directory, use the following command.

ls -l | grep -c "^-.*"

Related Posts

Leave a Comment

Previous post:

Next post: