Please read the INSTALL file for installation instructions, particularly if
you are installing on a non-linux machine.
This is a handy little utility to display a tree view of directories that
I wrote some time ago and just added color support to. I've decided that
since no one else has done something simular I would go ahead and release
it, even though it's barely a 1st year CS student hack. I've found it damn
handy to peruse a directory tree though, especially when someone is trying to
hide something from you.
The main distribution site for tree is here:
If you don't like the way it looks let me know how you think it should be
formatted. Feel free to suggest modifications and additions.
Thanks go out so the following people who have helped bring tree to the
pinnacle of perfection that it is: ;)
- Added HTML output (-H).
- Added options -o, -L and -R.
- Added -S option to print ASCII graphics lines for use under linux
console when an alternate console font has been selected (might also
work under DOS telnet).
Guido Socher (and others)
- Made tree more portable. Should compile under solaris.
- Discovered bug where tree will segmentation fault on long pathnames.
- Discovered in -L argument processing.
- Discovered problem with recursive symlink detection
- Suggested option to remove file and directory report at end of tree
- Spotted memory over-allocation bug in read_dir().
- Submitted several patches to fix various memory leaks.
- Reported that Tru64 defines TRUE/FALSE in sys/types.h (OSF1 standard?)
- Found bug in tree that caused it to seg-fault if 50 file arguments where
given and directory coloring was turned on.
- Discovered tree crashed on missing arguments.
- Discovered that tree did not properly encode characters in filenames
when used as URLs when using the -H option.
- Fixed issue with --charset option processing.
- Pointed out that tree did not list large files.
- Submitted patch which fixed a compiler issue and cleaned up HTML and CSS
code, applied CSS to all output, and fixed up HTML to 4.01 strict
- Added '|' support to the pattern matching routines.
- Pointed out that -t did not sort properly for files with the same
- Suggested option to change HTML title and H1 string.
- Suggested -r option for reversed alphanumeric sort ala 'ls -r'.
- Provided patch to support OS/2, fix HTML encoding, provide charset
support. Added to authors list.
- Debian maintainer who pointed out problems and applied fire to feet to fix
- Suggested -h option for human readable output for -s, ala ls -lh.
- Supplied patch to make tree under cygwin.
- Provided patch to fix a colorization bug when dealing with special
files and directories that seem to have an extension.
- Suggested removing trailing slash on user supplied directory names if -f
option is used.
- Pointed out broken HTML output in 1.5.1.
- Suggested --filelimit option.
- Suggested -v option (version sort).
- Provided build options for Solaris.
- Provided build options and source mods for HP NonStop support.
- Noted that setlocale() should come before MB_CUR_MAX check.
- Submitted patch to remove compiler warnings for Solaris.
- Provided patch which fixes issue where indent may output more than it
should when dirs[*] is not properly cleared before use.
William C. Lathan III
- Showed that tree was not properly quoting arguments to recursively called
tree instances when using -R.
And many others whom I've failed to keep track of. I should have started
this list years ago.
- Steve Baker