← 返回命令列表

Linux command

dutree 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

dutree

Example

dutree [path/to/directory]

Aggregate

dutree -a [10]M

Example

dutree -d [2]

Skip directories

dutree -f

Exclude hidden

dutree -H

Exclude

dutree -x "*.log"

Summary

dutree -s

说明

dutree is a disk usage analyzer that presents filesystem information as a colorful, hierarchical tree structure. Unlike traditional du output, dutree provides an intuitive visual representation that makes it easy to identify space-consuming directories at a glance. The tool uses color coding and tree branches to show the relationship between directories and their contents, with file sizes displayed prominently. It can aggregate small items below a configurable threshold to keep the output readable and focused on the largest space consumers. Written in Rust for performance, dutree handles large directory trees efficiently. The depth can be limited with -d to prevent overwhelming output. The tool is particularly useful for quick space audits and identifying directories suitable for cleanup.

参数

-a, --aggr _size_
Aggregate items smaller than size (e.g., 1K, 10M, 1G).
-d, --depth _n_
Maximum directory depth to display.
-f, --files-only
Skip directories, show only files.
-H, --no-hidden
Exclude hidden files and directories.
-x, --exclude _pattern_
Exclude files matching glob pattern.
-s, --summary
Show only total size.
-b, --bytes
Print raw byte sizes instead of human-readable format.

FAQ

What is the dutree command used for?

dutree is a disk usage analyzer that presents filesystem information as a colorful, hierarchical tree structure. Unlike traditional du output, dutree provides an intuitive visual representation that makes it easy to identify space-consuming directories at a glance. The tool uses color coding and tree branches to show the relationship between directories and their contents, with file sizes displayed prominently. It can aggregate small items below a configurable threshold to keep the output readable and focused on the largest space consumers. Written in Rust for performance, dutree handles large directory trees efficiently. The depth can be limited with -d to prevent overwhelming output. The tool is particularly useful for quick space audits and identifying directories suitable for cleanup.

How do I run a basic dutree example?

Run `dutree` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a, --aggr _size_ do in dutree?

Aggregate items smaller than size (e.g., 1K, 10M, 1G).