Linux 查看某一个文件夹下有多少文件的命令

可以使用下面的命令:ls -1 | wc -l服务器输出: [root@dev-db usr]# ls -1 | wc -l 12 [root@dev-db usr]#