The output is like that of du, so you get the recursive output of every subfolder.

Output is:

# name

Where # is the number of files, folders, or both (or whatever you desginate -type TYPE to be)

Where name is the relative folder path (relative to where you cded to)

If you want the output to show you absolute path, then change that last $i to readlink -f $i



Output example (relative path):

Output example (absolute path):

The end.


Leave a Reply

Your email address will not be published. Required fields are marked *