2daygeek.com
How to count number of files and folder in a directory
I have posted 5+ commands and examples to count files and directory in linux. The below command is count, how many files are in current directory. ls -l | grep ^- | wc -l Output:Totally 2 files are…