📌  相关文章
📜  ubuntu 目录中的文件数 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:03.786000             🧑  作者: Mango

代码示例1
# To count files (even files without an extension) at the root of the current directory, use:
ls -l | grep ^- | wc -l

# To count files (even files without an extension) recursively from the root of the current directory, use:
ls -lR | grep ^- | wc -l