I need to list the number of files (hidden AND visible) on a hard drive, including those in subfolders. Looking for a simple command for this please?
This is separate from my previous question where I wanted a list of the files themselves.
Also, is there a way to only list the number of files not the folders, or are they all included by default?
Cheers
tree --du -aih
which will list all files and directories and shows their corresponding sizes as well as total counts at the end then. – αғsнιη Apr 29 '18 at 12:47