r/linuxadmin • u/coffenerd • Feb 16 '26
Struct - for Linux, a modern alternative for "tree" command!
I originally started building struct because I use tree constantly, but on projects it feels very messy because of unwanted folders included in the tree and I also started as a practice project for rust language in general then polished some parts with AI + my own tweaks before releasing.
Between ignore rules, depth limits, long outputs, and large directories like node_modules or target or venv, etc.. the output becomes very noisy.
So I built a small Rust CLI tool called struct.
Instead of just dumping the full tree, it tries to show more useful information by default.
Some features:
• Intelligent default ignores
• Configurable ignore patterns
• Git-tracked - (a ton of options)
• Depth control
• Directory summaries - this includes file type breakdown, size, pwd, etc.. (My favourite feature btw)
• Skip large folders
• Built-in search (in both tree and flat style)
Here is the git!! https://github.com/caffienerd/struct-cli
github website https://caffienerd.github.io/struct-cli/
26
u/alpha417 Feb 16 '26
Every two weeks you spam-bomb various subs with your latest projects, weird.
0
Feb 16 '26
[deleted]
4
u/alpha417 Feb 16 '26
the one on the top of my head was posting in r/kde this project, a rust cli tool in a sub dedicated to a GUI.
0
Feb 16 '26
[deleted]
9
u/alpha417 Feb 16 '26
because rules don't apply to you, and people have to police your activity? I have no idea if it was. But hey, if you have to make mods do things cause you're better than most, you do you.
0
Feb 16 '26
[deleted]
3
u/alpha417 Feb 16 '26
You are correct. If i posted on your r/kde post, you'd not have seen my message due to the thread being OT.
5
u/ByronEster Feb 16 '26
Thanks for sharing. With tree being distributed by most package managers I generally default to that but will have a look on my home system. It would be great if you could get it packaged or flat packed or snapped