News for hackers. Stuff that matters.
Re:PowerShell 7.0 by nickcox on Thursday March 05, 2020 @01:11AM (#22491348)
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.

Re:PowerShell 7.0 by JensRex on Thursday March 05, 2020 @03:05AM (#22491769)
>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.