DDIR(1)
πΈ DDIR(1) β the ddir page, bestie edition πΈ
okay so you opened the manual for ddir?? iconic. it lives in the User commands section of the manual, and it's genuinely one of the cutest little utilities out there. let's get into it π
β¨ NAME β¨
ddir β display hierarchical directory tree π
π¦ SYNOPSIS π¦
ddir [options] [DIR]
π DESCRIPTION π
so what does it do? it displays an indented directory tree, using ASCII graphical characters to draw the hierarchical structure, like a lil family tree but for your folders π³β¨
the directories you want to include or leave out? you get to specify those with command line options. slay.
ddir is a Perl implementation of the tree(1) program, which is lowkey the whole vibe. and the extra "d" in front of the name? not random. it was used to differentiate the utility from an existing dir(1) program. the way that naming collision had to be dodged π
π OPTIONS π
-d,--dirβ display only directories. no files, just the folder girlies ποΈ-i,--include REGEXPβ include files matching regexp. the match is done against the whole path. and yes bestie, you can use this option multiple times π if this option is not supplied, every file is automatically included. and the matches can be further filtered by using options--exclude.-n,--no-exclude-vcsβ do not exclude version controlled dirs. let them all in π-v,--verbose LEVELβ print informational messages. increase the numeric LEVEL for more verbosity π’-x,--exclude REGEXPβ ignore files matching regexp. the match is done against the whole path. also usable multiple times π this option is applied after possible--includematches.-X,--exclude-vcsβ enabled by default. exclude version control directories. see--help-exclude. use--no-exclude-vcsto include all in listing.-h,--helpβ print text help--help-excludeβ print default exclude value when--exclude-vcsis used.--help-htmlβ print help in HTML format.--help-manβ print help in manual pageman(1)format.-V,--versionβ print contact and version information.
π EXAMPLES π
show directory tree by excluding version control directories. display only directories:
ddir --dir .
.
+--doc/
| +--manual/
+--bin/
look at that structure. the little +-- branches. it's giving art π¨β¨
π©Ή TROUBLESHOOTING π©Ή
None.
(no drama. zero. we love a low-maintenance program π)
π± ENVIRONMENT π±
None.
π FILES π
None.
π¦ EXIT STATUS π¦
Not defined.
π§ DEPENDENCIES π§
Uses standard Perl modules. nothing exotic, no cap.
π BUGS AND LIMITATIONS π
None.
π SEE ALSO π
go check them out, they're the cousins π«Ά
π AVAILABILITY π
Homepage is at http://freecode.com/projects/ddir
β AUTHOR β
Jari Aalto
π LICENSE AND COPYRIGHT π
Copyright (C) 1995-2025 Jari Aalto. Copyright (C) 1994 Brian Blackmore.
This program and its documentation is free software; you can redistribute and/or modify program under the terms of GNU General Public license either version 2 of the License, or (at your option) any later version.
so yeah, that's the whole page. free software, GNU GPL v2 or later, you know the drill π
okay and one last thing: this page ships with perl v5.40.1, dated 2025-12-24. merry whatever, go tree your filesystem bestie πβ¨π
π¦ where this page comes from
- ubuntu resolute: ddir 2025.0129-5 Β· GPL-2.0-or-later
- ubuntu stonking: ddir 2025.0129-5 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms