Monday, March 8, 2010

Counting files number in a directory under Linux

One way is:

ls -1 /YOUR/DIRECTORY | grep -c ""

No comments: