Small-sunshine

1、查询目录/文件的数量(包括子目录下的文件)

[root@small king]# ls -lR|grep "^-"|wc -l  
4

注:R代表子目录、"^d"表示目录 、"^-"表示文件

分类:

技术点:

相关文章: