linux recursively find all the folders and files in the directory

 

With respect to the ls or ll, you might find more to the force at this time

I look at the directory structure

command to view the directory tree structure, and the final number will be listed and the number of directory folder of all of us ... it seems there is no need to do next, or what to say

 find command to find files as follows,

With regularization expression,

To statistics the number of recursive folder of all files

Similarly

For folders

Note that this which contains the current folder, it can be figured out minus one

 

Guess you like

Origin www.cnblogs.com/yongjieShi/p/11304122.html