# erdtree (erd) [![Build status](https://github.com/solidiquis/erdtree/actions/workflows/ci.yml/badge.svg)](https://github.com/solidiquis/erdtree/actions) [![Crates.io](https://img.shields.io/crates/v/erdtree.svg)](https://crates.io/crates/erdtree) [![Packaging status](https://repology.org/badge/tiny-repos/erdtree.svg)](https://repology.org/project/erdtree/versions) [![Crates.io](https://img.shields.io/crates/d/erdtree)](https://crates.io/crates/erdtree) `erdtree` is a modern, cross-platform, multi-threaded, and general purpose filesystem and disk-usage utility that is aware of `.gitignore` and hidden file rules. The following are some feature highlights: * Reports disk usage using a variety of metrics: bytes (logical or physical), blocks (Unix-only), word-count, or line-count. * Supports an `ls -l`-like view with information about owners, group, file permission, etc. (Unix-only). * Respects hidden file and gitignore rules by default. * Supports regular expressions and glob based searching by file-type. * Comes with several layouts: a reverse tree output, a `tree`-like output, or a `du`-like output. * Granular sorting capabilities. * Supports icons. * Colorized with `LS_COLORS`. You can think of `erdtree` as a little bit of `du`, `tree`, `find`, `wc` and `ls`.

failed to load picture

## Table of Contents * [Usage](#usage) * [Installation](#installation) * [Documentation](#documentation) - [Configuration file](#configuration-file) - [Toml file](#toml-file) - [.erdtreerc](#erdtreerc) - [Hardlinks](#hardlinks) - [Symlinks](#symlinks) - [Disk usage](#disk-usage) - [Physical vs logical](#physical-vs-logical) - [Matching `du` output](#matching-du-output) - [Word and line count](#word-and-line-count) - [Layouts](#layouts) - [gitignore](#gitignore) - [Hidden files](#hidden-files) - [Icons](#icons) - [Maximum depth](#maximum-depth) - [Pruning empty directories](#pruning-empty-directories) - [Sorting](#sorting) - [Directories only](#directories-only) - [Long view](#long-view) - [Regular expressions and globbing](#regular-expressions-and-globbing) - [Truncating output](#truncating-output) - [Redirecting output and colorization](#redirecting-output-and-colorization) - [Parallelism](#parallelism) - [Completions](#completions) - [Same filesystem](#same-filesystem) * [Comparisons against similar programs](#comparisons-against-similar-programs) - [exa](#exa) - [dua](#dua) - [dust](#dust) - [fd](#fd) * [Rules for contributing](#rules-for-contributing) * [Security policy](#security-policy) * [Questions you might have](#questions-you-might-have) ## Usage ``` $ erd --help erdtree (erd) is a cross-platform, multi-threaded, and general purpose filesystem and disk usage utility. Usage: erd [OPTIONS] [DIR] Arguments: [DIR] Directory to traverse; defaults to current working directory Options: -c, --config Use configuration of named table rather than the top-level table in .erdtree.toml -C, --color Mode of coloring output [default: auto] Possible values: - none: Print plainly without ANSI escapes - auto: Attempt to colorize output - force: Turn on colorization always -d, --disk-usage Print physical or logical file size [default: physical] Possible values: - logical: How many bytes does a file contain - physical: How many actual bytes on disk, taking into account blocks, sparse files, and compression - line: How many total lines a file contains - word: How many total words a file contains - block: How many blocks are allocated to store the file -f, --follow Follow symlinks -H, --human Print disk usage in human-readable format -i, --no-ignore Do not respect .gitignore files -I, --icons Display file icons -l, --long Show extended metadata and attributes --group Show file's groups --ino Show each file's ino --nlink Show the total number of hardlinks to the underlying inode --octal Show permissions in numeric octal format instead of symbolic --time