Answers for "linux find number of files in directory"

1

terminal get number of files in dir

#Type in terminal in the directory:

ls -1 | wc -l
Posted by: Guest on July-22-2021
0

shell show number of files in each folder

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

Code answers related to "linux find number of files in directory"

Browse Popular Code Answers by Language