3 ms·
Not sure that's a fair comparison though. `du` isn't built in to bash, afaik; you could just as easily type `du -sh <folder>` in PowerShell. If you /did/ need
by nickcox 7y ago
Not sure that's a fair comparison though. `du` isn't built in to bash, afaik; you could just as easily type `du -sh <folder>` in PowerShell.
If you /did/ need to do it without `du` then it would be something like:
`dir <folder> -Recurse | measure -Property Length -Sum`
which is easier to remember than whatever the equivalent bash would be, imo.
- JensRex 7y ago>Not sure that's a fair comparison though Maybe not in a technical sense, but I've never encountered Bash without GNU coreutils (or busybox). I'm just comparing how I would solve a problem in a typical *nix environment, compared to a Windows environment.