pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/codemonkey76/df-rust

github.githubassets.com/assets/primer-70be7debc79a8eff.css" /> GitHub - codemonkey76/df-rust: DF implementation in Rust · GitHub
Skip to content

codemonkey76/df-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

df-rust

A minimalist df clone written in Rust — displays mounted filesystems, disk usage, and colored usage bars in a clean column layout.

screenshot

Features

  • Parses /proc/mounts directly — no shelling out or external binaries
  • Uses libc::statvfs for disk statistics (no extra crates)
  • Filters out pseudo-filesystems (proc, tmpfs, sysfs, etc.)
  • Displays:
    • Filesystem device
    • Total, used, available space
    • Usage percentage
    • Colored bar graph (■) indicating usage level
  • ANSI color output with clear thresholds:
    • Green: < 75%
    • Yellow: 75–85%
    • Red: > 85%

Output Example

Filesystem         Type     Size   Used  Avail   Use% Graph             Mounted on
/dev/nvme0n1p2     btrfs  930.5G  85.6G 845.0G    9.2% ■■                /
/dev/nvme0n1p1     vfat     1.0G   0.2G   0.8G   22.1% ■■■■              /boot

Building

Make sure you have Rust installed. Then:

git clone https://github.com/codemonkey76/df-rust.git
cd df-rust
cargo build --release

Usage

Run:

./target/release/df-rust

Or install to your path:

cargo install --path .

About

DF implementation in Rust

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy