方法1:
ls -al |grep -E "^d" |grep -v "\.$" |wc -l
方法2:
find -maxdepth 1 -type d |grep -v "^.$"
如果统计到2级目录-maxdepth参数修改为2