I have the following directory structure (example) -
main
|--src
|--com
|- company
|--org
|- apache
|--resources
|--abc
|--etc
I need the disk space used by each sub-directory under the main
directory. So, the output would be something like -
user@main> du -{command_switches}
1M src
20M resources
3M etc
I have tried several switches available - sh, Sh, ash, aSH - but I could not get the required result.
ncdu
which shows what you need in an interactive TUI environment. – Mio Rin Apr 27 '18 at 13:26