Answers for "count files in linux directory"

1

linux count files in directory

#count files in a directory faster with:
ls -f | wc -l
Posted by: Guest on September-22-2021
2

linux count files in subdirectories

find . -maxdepth 1 -type d | while read -r dir
do printf "%s:t" "$dir"; find "$dir" -type f | wc -l; done
Posted by: Guest on December-22-2020

Code answers related to "count files in linux directory"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language