Tagged Questions
10
votes
2answers
280 views
How can I find the number of files on a filesystem?
I want to know how many files I have on my filesystem. I know I can do something like this:
find / -type f | wc -l
This seems highly inefficient. What I'd really like is to do is find the total ...
4
votes
4answers
3k views
How do I count all the files recursively through directories
I want to see how many files are in subdirectories in there subdirectories to find out where all the inode usage is on the system. Kind of like I would do this for space usage
du -sh /*
which will ...