Friday, April 20, 2012

Number of files in a folder

Number of files in a folder

find . -type  f| wc -l

Number of Subfolders in a folder
find . -type d | wc -l

Number of folders in current folder then

find . -maxdepth 1 -type d | wc -l

No comments: