Shell/Bash: how to count number of files in each directory Example

By

Shell/Bash Example: This is the "how to count number of files in each directory" Example. compiled from many sources on the internet by SimpleTutorials.org

How to count number of files in each directory

du -a | cut -d/ -f2 | sort | uniq -c | sort -nr


* Summary: This "how to count number of files in each directory" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others