Answers for "how to count directories in linux"

1

number of directories in a directory linux

# this is the answer without using find
ls -lR | grep ^d | wc -l
Posted by: Guest on June-08-2021
0

Count files and directories using shell script

find /path/to/directory | wc -l
Posted by: Guest on August-05-2021

Code answers related to "how to count directories in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language