![](/style/images/good.png)
4
![](/style/images/bad.png)
Mac系统如何计算文件数量
source link: https://xmanyou.com/mac-calculate-file-count/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
23 February 2021
/ mac
Mac系统如何计算文件数量
分两种情况
只计算当前目录下的文件数量
ls | wc -l
示例
$ ls | wc -l
268
计算包含子目录的所有文件数量
find <directory> -type f | wc -l
示例
find /etc -type f | wc -l
2074
阿斌
Read more posts by this author.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK