I'm trying to clean up my files and I'm struggling with some command line stuff.
With the command
du -sh *
I can get a nice list of all folders where I use the command. How can I also get the number of files of each folder? i try to explain better:
Let's say I have the following structure:
macrofolder
|
+--folderA
|------file1
|------file2
+--folderB
|--file1
+--folderC
|------file1
How can I get something like this?
2MB . 1 file
30MB folderA 2 files
0MB folderB 0 files
4MB folderC 1 file
Is there a way to achieve something similar in a simple way?