Counting the files in a directory recursively
Written by empty   
Tuesday, 17 February 2009 23:44

This tutorial will guide you how to count the files in a directory recursively.

Firstly go to the directory that you are going to count.

In order to count all the files in a directory recursively you need to execute the following command:

TheDude@TheBox: folder # find . -type f | wc -l

find [period] [dash]type f [pipe] wc [dash][el]

If you copy/paste this line into a linux command prompt, make sure the pipe symbol is a solid vertical line (not the broken vertical line).

Comments (0)


Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Facebook! Slashdot! StumbleUpon! TwitThis Joomla Free PHP