(General Question) how to count how many files in a directory tree

Craig Tinson craig at 8010.co.uk
Sun May 16 18:52:25 UTC 2004


Quick question for you smart bods out there

I know that "ls -1 | wc -l" will tell me how many files there are in the 
current directory..

how would I go about finding out how many files there are in the current 
directory *and* it's sub directories?

TIA

Craig
*
*

-- 
Craig Tinson

8010 Media Ltd

                                     \|||/
                                     (o o)
----------------------------------ooO-(_)-Ooo-----------------------------
_ _ /: Thbbft.  |   Craig Tinson               | "The most overlooked
\'o.O;   _/     |   8010 Media Ltd             | advantage of owning a
=(___)=         |   Email: craig at 8010.co.uk    | computer is that if
  |U|           |   Tel: 0113 249 7027         | they foul up there's
                |   Mob: 0788 061 3892         | no law against whacking
                |   MSN: cgtinson at hotmail.com  | them around a bit."
--------------------------------------------------------------------------





More information about the fedora-list mailing list