Skip to content
wizzymorePublic

About

small du inspired cli written in rust

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

85 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 latest prebuilt binary (Linux, macOS):

curl -fsSL https://releases.eptic.ro/ru.sh | sh

Or build it with cargo:

cargo install ru

To update a binary installed with the script, run ru --update. Once a day, ru checks for a new release in the background and prints a notice to stderr when one is available. The check is skipped with --json, when stderr is not a terminal, in CI, or when RU_NO_UPDATE_CHECK is set.

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

Releases

Used by

Contributors

Languages