Alternatively, use df to find the space used, and something to find the number of files (e.g. find -x /mountpoint -type f | wc), then divide it out. Not quite as elegant, but perhaps easier to remember.
Note that it is not as accurate because df won't show bytes used, only 512-blocks as a minimum. On a big filesystem with few files, it will be close enough for government work.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.