Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
useerup
on April 7, 2016
|
parent
|
context
|
favorite
| on:
Bash on Ubuntu on Windows
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:
For du:
For df: