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

And you just built du with a single line of PowerShell. Also, you demonstrated the full syntax. The short form would be (leveraging aliases, positional parameters and unambiguous short parameter names):

For du:

    ls C:\Windows\ | measure length -sum
For df:

    gwmi win32_logicaldisk


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: