Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



>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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: