I would like to see sizes of subfolders in a folder, similar to linux
du -sh command. How can I list directories and their sizes in command prompt?
Try the Disk Usage utility from Sysinternals. Specifically,
If PowerShell is OK, then try the following:
The sizes are in bytes. To format them in some larger unit like MB, try the following (condensed to one line):
For more information, see this article at Technet.
If you want more flexible formatting of the sizes (choosing kB/MB/GB/etc based on the actual size), see this question and its answers.
I don't think it's possible to do what you want from the regular command line and with only a few simple commands. See this script as an example (not going to copy it here because I don't believe that approach is worth pursuing, unless PowerShell isn't available and third-party utilities aren't acceptable).
I have no experience with