struct is a command-line directory tree viewer designed for software projects. It presents directory structures while reducing the clutter caused by dependency directories, build artifacts, caches, and other generated content.
Rather than simply listing everything beneath a directory, struct applies predefined filtering rules to make the files relevant to a project’s development easier to identify. Ignored directories can remain visible as summarized entries, showing how much content has been omitted.
The application also provides directory summaries, Git-aware filtering, and filename searching. These features make it useful for inspecting repositories, reviewing changed files, and navigating large development trees.
This is free and open source software.
Key Features
- Displays project directory structures with built-in exclusions for common dependency, cache, and build directories.
- Summarizes ignored directories with the number of files omitted.
- Supports unlimited traversal or a specified maximum directory depth.
- Provides a directory summary mode with file counts, directory counts, file sizes, and extension statistics.
- Displays file sizes and can skip directories exceeding a configurable size threshold.
- Filters Git repositories to show tracked, untracked, staged, or modified files.
- Can display the most recent Git commit associated with directories.
- Supports Git-aware listings starting from the repository root.
- Searches files and directories using case-insensitive substring matching.
- Supports glob patterns for locating files by name or extension.
- Displays search results in hierarchical tree or flat-list format.
- Allows custom ignore rules using wildcard patterns.
- Stores user-defined ignore patterns in a configuration file.
- Supports temporarily disabling all ignore rules or restoring individual excluded directories.
- Displays colour-coded directory names and executable files.
Website: github.com/caffienerd/struct-cli
Support:
Developer: Coffee Nerd
License: MIT License

struct is written in Rust. Learn Rust with our recommended free books and free tutorials.
| Explore Linux | |
|---|---|
| Best Free and Open Source Software - A huge collection of recommended free and open source software covering every major category. | |
| In-depth Linux Software Reviews - Detailed assessments of Linux software covering features, usability and overall quality. | |
| The Big List of Active Linux Distros - An extensive collection of actively developed Linux distributions. | |
| Open Source Alternatives - Alternatives to software and services from Google, Microsoft, Apple, Adobe, IBM, Autodesk, Oracle and others. | |
| Essential Linux System Tools - Indispensable utilities for monitoring, maintaining and managing Linux systems. | |
| Linux Productivity Tools - Useful utilities for improving productivity and streamlining everyday tasks. | |
| Alternatives to Popular CLI Tools - Modern alternatives to familiar command-line utilities supplied with Linux systems. | |
| Awesome Free Linux Game Tools - Tools, utilities and companion software that improve gaming on Linux. | |
| Machine Learning on Linux - Machine learning and deep learning software, self-hosted applications and practical tools. | |
| Saving Money with Linux - Practical ways to reduce electricity consumption and lower computing costs with Linux. | |
| Linux Candy - Fun, entertaining and sometimes delightfully quirky software from the lighter side of Linux. | |

Please read our Comment Policy before commenting.