How can we count the number of files and folders in a deep Linux directory and list them by folder name. For e.g.
MainFolder |__SubFolder1 |__fileA, fileB, etc |_ SubSubFolder1 |__SubFolder2 |__fileA, fileB, etc |_ SubSubFolder1
Should give result like:
MainFolder: 2 Folders, n files (all files in the directory) MainFolder/SubFolder1: 1 Folder, m files