Determine the File Count in Unix Directory

May 21, 2008 · Print This Article

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

CODE:
  1. ls -l | grep -c "^-.*"

Related Posts

Comments

Got something to say?