Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fluffynuts/df
A minimal implementation of the `df` command for windows
https://github.com/fluffynuts/df
Last synced: 6 days ago
JSON representation
A minimal implementation of the `df` command for windows
- Host: GitHub
- URL: https://github.com/fluffynuts/df
- Owner: fluffynuts
- License: bsd-3-clause
- Created: 2022-10-27T08:46:28.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-06T07:23:56.000Z (about 1 year ago)
- Last Synced: 2024-11-17T05:34:49.213Z (about 2 months ago)
- Language: C#
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
df
---A very simple `df`-like clone for windows. No options, no frills, just see drive usage.
why
---The one that comes with GOW doesn't seem to work and I don't feel like installing
all of cygwin for such basic functionality.building
---
You'll need at least dotnet 6.0. If you like an easy life, install node:
```
npm ci
npm run publish
```(artifact will appear in the `Publish` folder)
If you don't have (and really don't want to install) node, check out the commandline
for the "publish" script in package.json, or roll your own.usage
---Try `--help`.
Run `df` to get a human-readable output. You can get byte sizes with `--no-human-readable`
or use a 1000 divisor instead of the generally-accepted 1024 with `--si`.it's fat
---Yes, this is a chonky boi when published (3mb with AOT), but it was quick to bang out in .net - if you
want to keep it smaller, you probably only need, from a regular build:
- df.exe
- df.dllfor a total of about 160k, which is still chonky compared with the native `df` coming
in at about 2k. C'est la vie!