Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
How to count number of files in each directory
zero_field
Programming language:
Whatever
2021-06-24 00:25:24
0
Q:
How to count number of files in each directory
Raghav Dinesh
Code:
Whatever
2021-09-02 21:44:13
du -a | cut -d/ -f2 | sort | uniq -c | sort -nr
2
Tags
number
file
files
how
count
Related
bash count files in directory recursively matchingattern
count no of file in a directory in unix
bash list all files in directory and subdirectories
number all files in a folder
command to know number of files in a directory
bash how many files in a directory
New to Communities?
Join the community