Answers for "count number of directories in current directory"

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
1

How to count number of files in each directory

du -a | cut -d/ -f2 | sort | uniq -c | sort -nr
Posted by: Guest on June-11-2020

Code answers related to "count number of directories in current directory"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language