Answers for "how to check files in the directory of ubuntu terminal"

0

number of files in directory ubuntu

# 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
Posted by: Guest on June-08-2021

Code answers related to "how to check files in the directory of ubuntu terminal"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language