Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

How to count number of files in each directory

du -a | cut -d/ -f2 | sort | uniq -c | sort -nr
 
PREVIOUS NEXT
Tagged: #How #count #number #files #directory
ADD COMMENT
Topic
Name
3+7 =