1
0
Fork 0
mirror of https://github.com/nachoparker/dutree synced 2024-05-27 02:16:08 +02:00
a tool to analyze file system usage written in Rust
Go to file
Brian Campbell 557f045331 Render the bars relative to the largest size shown
To make better use of terminal space, render the bars relative to the size of
the largest file, so the largest file will take up the full width, rather than
relative to the total size of all examined files.  This avoids a large amount
of extra whitespace in cases where you have a lot of files in a directory, and
allows you to get more detail in the visual comparisons.
2018-12-20 23:37:09 -05:00
resources add the --files-only flag 2018-04-16 22:59:03 +02:00
src Render the bars relative to the largest size shown 2018-12-20 23:37:09 -05:00
test fix problem with some unicode starting filenames (#8) 2018-07-13 16:16:36 +00:00
.gitignore Initial commit 2018-04-16 22:59:02 +02:00
Cargo.lock fix problem with some unicode starting filenames (#8) 2018-07-13 16:16:36 +00:00
Cargo.toml fix problem with some unicode starting filenames (#8) 2018-07-13 16:16:36 +00:00
LICENSE Initial commit 2018-04-16 22:59:02 +02:00
README.md fix mistake in README 2018-11-01 18:45:26 -06:00

dutree

a tool to analyze file system usage written in Rust

Example

Features

  • coloured output, according to the LS_COLORS environment variable.
  • display the file system tree
  • ability to aggregate small files
  • ability to exclude files or directories
  • ability to compare different directories
  • fast, written in Rust

More details at ownyourbits.com.

Usage

 $ dutree --help
Usage: dutree [options] <path> [<path>..]

Options:
    -d, --depth [DEPTH] show directories up to depth N (def 1)
    -a, --aggr [N[KMG]] aggregate smaller than N B/KiB/MiB/GiB (def 1M)
    -s, --summary       equivalent to -da, or -d1 -a1M
    -u, --usage         report real disk usage instead of file size
    -b, --bytes         print sizes in bytes
    -f, --files-only    skip directories for a fast local overview
    -x, --exclude NAME  exclude matching files or directories
    -H, --no-hidden     exclude hidden files
    -A, --ascii         ASCII characters only, no colors
    -h, --help          show help
    -v, --version       print version number

Installation

cargo install dutree

There's also standalone binaries for Linux in the Releases section

Arch Linux

You can install the AUR package with an AUR helper like pacaur, or manually:

git clone https://aur.archlinux.org/dutree.git
cd dutree
makepkg -si