1
0
Fork 0
mirror of https://github.com/nachoparker/dutree synced 2024-04-24 03:35:04 +02:00
dutree/README.md

63 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

2018-03-25 17:59:48 +02:00
# dutree
a tool to analyze file system usage written in Rust
![Example](resources/dutree_featured.png)
# 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
2018-05-12 00:50:24 +02:00
More details at [ownyourbits.com](https://ownyourbits.com/2018/03/25/analize-disk-usage-with-dutree).
2018-03-25 17:59:48 +02:00
# 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
2018-03-25 17:59:48 +02:00
-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
```
2018-04-16 23:03:50 +02:00
cargo install dutree
2018-03-25 17:59:48 +02:00
```
2018-05-12 00:50:24 +02:00
There's also standalone binaries for Linux in the [Releases section](https://github.com/nachoparker/dutree/releases)
## Arch Linux
2018-05-10 21:45:50 +02:00
2018-05-12 00:50:24 +02:00
You can install [the AUR package](https://aur.archlinux.org/packages/dutree/)
with an AUR helper like `pacaur`, or manually:
```bash
git clone https://aur.archlinux.org/dutree.git
2018-11-02 01:45:26 +01:00
cd dutree
2018-05-12 00:50:24 +02:00
makepkg -si
```
2019-09-27 02:15:00 +02:00
## Fedora
You can install `dutree` from the official Fedora repositories:
```sh
$ sudo dnf -y install dutree
```