需要统计文件夹下的文件个数。使用如何命令
ls cache/* | wc -l
提示 -bash: /usr/bin/ls: Argument list too long
。
哈。。以后还是多想想在提问。
find cache -type f|wc -l
需要统计文件夹下的文件个数。使用如何命令
ls cache/* | wc -l
提示 -bash: /usr/bin/ls: Argument list too long
。
哈。。以后还是多想想在提问。
find cache -type f|wc -l