📅  最后修改于: 2022-03-11 14:51:03.786000             🧑  作者: Mango
# 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