Skip to content
wizzymorePublic

About

small du inspired cli written in rust

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

81 Commits

Folders and files

Repository files navigation

ru

github build status crates.io

ru is a simple and easy-to-use cli tool inspired by du to find out the disk usage of files/directories.

The motivation behind this project is to have a safe, performant and cross platform way to measure disk usage of folders and files.

Usage

Install the tool:

cargo install ru

Use the tool with the ru binary:

ru .

Use --json to print a JSON array instead of the default text output:

ru --json .

Each array entry has a path string and an integer size_bytes value. Paths use the same display form as text output, and entries are sorted by path. The byte count uses the same on-disk usage measurement as the text output. Depth and --ignore options apply in JSON mode; --bytes and color options do not change the JSON data.

Filesystem diagnostics are written to stderr. If traversal encounters an error, ru --json still writes a valid JSON array to stdout and exits with a nonzero status.

Contributing

Issues are welcome, if you find a bug and want to report it I will be pleased to fix it if i have the time for it.
PRs are not welcome, only the changes I want or need will be implemented, if you feel that this is not "right", fork it.

About

small du inspired cli written in rust

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages