View Single Post
  #1   IP: 153.99.39.21
Old 2015-08-18, 03:40 PM
Kaleva Kaleva is offline
初级会员
 
Join Date: 2011-12-22
Posts: 1
Kaleva 现在声名狼藉
Default How to count all files inside a folder, its subfolder and all

How to count all files inside a folder, its subfolder and all . The count should not include folder count

I have a really deep directory tree on my Linux box. I would like to count all of the files in that path, including all of the subdirectories.

For instance, given this directory tree:
/home/blue
/home/red
/home/dir/green
/home/dir/yellow
/home/otherDir/
Reply With Quote