统计/var/log/下有多少文件。
一切皆文件
[root@localhost ~]# ls -lR /var/log |grep "^-" | wc -l
43
[root@localhost ~]# find /var/log/ -type f|wc -l
74
[root@localhost ~]# tree /var/log
......
13 directories, 74 files
统计/var/log/下有多少文件。
一切皆文件
[root@localhost ~]# ls -lR /var/log |grep "^-" | wc -l
43
[root@localhost ~]# find /var/log/ -type f|wc -l
74
[root@localhost ~]# tree /var/log
......
13 directories, 74 files