dutree: A Powerful Disk Usage Tracker for Linux File Systems

Introduction

Dutree is a powerful disk usage tracker for Linux file systems. It is a command-line tool that allows users to quickly and easily analyze disk usage and identify large files and directories that are taking up space. It is designed to be fast, efficient, and easy to use. It can be used to identify large files and directories that can be deleted or archived to free up disk space. It can also be used to identify files and directories that are taking up too much space and need to be moved to another location. Dutree is a great tool for system administrators and users who need to quickly and easily analyze disk usage and identify large files and directories.

dutree: A Powerful Disk Usage Tracker for Linux File Systems

Dutree is a powerful disk usage tracker for Linux file systems. It is a command-line tool that can be used to quickly and easily analyze disk usage and identify large files and directories that are taking up too much space. It can also be used to identify files and directories that are not being used and can be safely deleted. Dutree is fast, efficient, and easy to use, making it an ideal tool for system administrators and users who need to quickly identify and manage disk usage.
[ad_1]

dutree is a free, open-source, fast command-line tool for analyzing disk usage, written in the Rust programming language, which is developed from the combination of durep (disk usage reporter) and tree (list directory content in tree-like format) command-line tools. As a result, dutree reports disk usage in a tree-like format.

dutree displays colored output, depending on the values configured in the GNU LS_COLORS environment variable. This environment variable allows for setting the colors of files based on their extension, permissions, and file type.

dutree Features:

  • Show the file system tree.
  • Supports aggregating of small files.
  • Allows for comparing different directories.
  • Supports excluding files or directories.

How to Install dutree in Linux Systems

To install dutree in Linux distributions, you must have rust programming language installed on your system. If you don’t have Rust installed, you can use the following curl command to install it as shown.

$ sudo curl https://sh.rustup.rs -sSf | sh
Install Rust in Linux
Install Rust on Linux

Once Rust is installed, you can run the following command to install dutree in Linux distributions as shown.

$ cargo install --git https://github.com/nachoparker/dutree.git
Install dutree in Linux
Install dutree in Linux

After installing dutree, it uses environment colors according to the variable LS_COLORS, it has the same colors ls –color command that our distro has configured.

$ ls --color

The simplest way of running dutree is without arguments, this way it shows a filesystem tree.

$ dutree
Linux Filesystem Disk Usage
Linux Filesystem Disk Usage

To display real disk usage instead of file size, use the -u flag.

$ dutree -u 
Show Linux Disk Usage
Show Linux Disk Usage

Show Directories in Depth

You can show directories up to a given depth (default 1), using the -d flag. The command below will show directories up to a depth of 3, under the current working directory.

For example if the current working directory (~/), then display the size of ~/*/*/* as shown in the following sample screenshot.

$ dutree -d 3
Show Directories in Depth Disk Usage
Show Directories in Depth Disk Usage

Exclude Files or Directories in Output

To exclude matching a file or directory name, use the -x flag.

$ dutree -x CentOS-7.0-1406-x86_64-DVD.iso 
Show Disk Usage with Exclude Filename
Show Disk Usage with Exclude Filename

You can also get a quick local overview by skipping directories, using the -f option, like so.

$ dutree -f
Quick Overview by Skipping Directories
Quick Overview by Skipping Directories

A full summary/overview can be generated using the -s flag as shown.

$ dutree -s
Linux Disk Usage Summary
Linux Disk Usage Summary

Aggregate Small Files

It is possible to aggregate files smaller than a certain size, default is 1M as shown.

$ dutree -a 
Aggregate Small Files
Aggregate Small Files

Exclude Hidden Files

The -H switch allows for excluding hidden files in the output.

$ dutree -H

The -b option is used to print sizes in bytes, instead of kilobytes (default).

$ dutree -b

To turn off colors, and only display ASCII characters, use the -A flag like so.

$ dutree -A

You can view the dutree help message using the -h option.

$ dutree -h

Usage: dutree [options]  [..]
 
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
    -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

dutree is a simple yet powerful command-line tool to show file size and analyze disk usage in a tree-like format, on Linux systems. Use the comment form below to share your thoughts or queries about it, with us.

[ad_2]

A Powerful Disk Usage Tracker for Linux File Systems: Dutree

Are you looking for a powerful disk usage tracker for your Linux file systems? Look no further than dutree! Dutree is an open source command line utility that helps you visualize and analyze disk usage on your Linux file systems.

Dutree is designed to be fast and efficient, and it can quickly scan your file system and generate a tree-like structure that shows you the size of each directory and file. It also provides you with detailed information about the disk usage, such as the total size of the directory, the number of files, and the number of subdirectories. This makes it easy to identify which directories are taking up the most space.

Dutree also provides you with a number of useful features, such as the ability to filter the output by size, type, or name. You can also use it to compare disk usage between different file systems, and it can even generate a report that shows you the disk usage over time. This makes it easy to track changes in disk usage and identify potential problems.

Overall, dutree is a powerful and efficient disk usage tracker for Linux file systems. It is easy to use and provides you with detailed information about your disk usage. If you are looking for a tool to help you manage your disk usage, then dutree is definitely worth checking out.

Jaspreet Singh Ghuman

Jaspreet Singh Ghuman

Jassweb.com/

Passionate Professional Blogger, Freelancer, WordPress Enthusiast, Digital Marketer, Web Developer, Server Operator, Networking Expert. Empowering online presence with diverse skills.

jassweb logo

Jassweb always keeps its services up-to-date with the latest trends in the market, providing its customers all over the world with high-end and easily extensible internet, intranet, and extranet products.

GSTIN is 03EGRPS4248R1ZD.

Contact
Jassweb, Rai Chak, Punjab, India. 143518
Item added to cart.
0 items - 0.00