Count files in a directory

by Sanju 2009-11-09 16:07:36

Count files in a directory

The command wc is used for word count..

To know how many files with extension img are in the current directory:

ls *.img | wc


To know more about wc type the following command in terminal
man wc


Tagged in:

994
like
0
dislike
0
mail
flag

You must LOGIN to add comments