Sunday, April 10, 2011

count files in a directory

To list files in a directory to count the number of files we issue the following command in Linux:
$ls-l | wc -l


I was reminded of how cool Linux was, again!

Cheers

No comments:

Post a Comment