tree Verified for current stable LTS

Tree Command: Print Directories With Wildcard Pattern Prune Non Ancestors

Use for print directories with wildcard pattern prune non ancestors with Tree. Exact CLI syntax to print directories with wildcard pattern prune non ancestors using Tree.

When to use this: Use for print directories with wildcard pattern prune non ancestors with Tree.

Command Syntax

tree -P <directory_name> --matchdirs --prune

Live Command Builder

Final Command

tree -P <directory_name> --matchdirs --prune

Command Breakdown

-P
Command Option
Tool-specific option used by this command invocation.
--matchdirs
Command Option
Tool-specific option used by this command invocation.
--prune
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to print directories with wildcard pattern prune non ancestors using Tree.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Tree directory