8000 GitHub - fluffynuts/df: A minimal implementation of the `df` command for windows
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fluffynuts/df

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

for a total of about 160k, which is still chonky compared with the native df coming in at about 2k. C'est la vie!

About

A minimal implementation of the `df` command for windows

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0