//查看文件夹下有多少文件 ls -l|grep "^d"| wc -l 注: grep "^d"表示目录,"^-"表示文件 https://blog.csdn.net/gaishi_hero/article/details/81146628