Counting the number of files in a folder
ls -l |grep "^-"|wc -l
Counting the number of a folder directory
ls -l |grep "^d"|wc -l
Statistics folder under the file number, including sub-folders in the
ls -lR|grep "^-"|wc -l
Counting the number of files in a folder
ls -l |grep "^-"|wc -l
Counting the number of a folder directory
ls -l |grep "^d"|wc -l
Statistics folder under the file number, including sub-folders in the
ls -lR|grep "^-"|wc -l