Page 1 of 1

tree 1.5.2.2

Posted: Sat 10 Oct 2009, 22:20
by Pizzasgood
http://mama.indstate.edu/users/ice/progs.html
http://mama.indstate.edu/users/ice/tree/

This is a nice little commandline tool to see what is in your directories.

Code: Select all

# ls
tree-1.5.2.2  tree-1.5.2.2.pet  tree_DOC-1.5.2.2  tree_DOC-1.5.2.2.pet
# tree
.
|-- tree-1.5.2.2
|   `-- usr
|       `-- bin
|           `-- tree
|-- tree-1.5.2.2.pet
|-- tree_DOC-1.5.2.2
|   `-- usr
|       `-- man
|           `-- man1
|               `-- tree.1
`-- tree_DOC-1.5.2.2.pet

7 directories, 4 files
If you use the -C option, it will be in color like ls. You can add an alias to /etc/profile.local or ~/.bashrc to make that default behavior:

Code: Select all

echo 'alias tree="tree -C"' >> ~/.bashrc


This was compiled by just running make with the Makefile that was included in the source package (the author did not include a ./configure script). I didn't alter anything.

Posted: Sun 11 Oct 2009, 03:17
by Flash
What does the second (DOC) .pet do? When I installed it, it said there's no menu entry. I can't find it. What's it for?

Posted: Sun 11 Oct 2009, 18:30
by Pizzasgood
DOC = documentation => man page.

If you look closely at my example above, the directories it's looking at are actually the expanded versions of the two packages, so that you can see exactly what is installed.

Posted: Sat 04 Dec 2010, 09:10
by GustavoYz
It is like write something like this ???

Code: Select all

ls -laR > list.txt

Posted: Sat 04 Dec 2010, 13:15
by Flash
No, tree lists the directory contents like so.

Posted: Sun 05 Dec 2010, 08:11
by GustavoYz
oh, that's better... :D

tree 1.5.2.2

Posted: Thu 05 Dec 2013, 09:29
by Pelo
Installed on Slaxen 6.3.2, for test
-- SlaxenHiv
| |-- boot.catalog
| |-- efi.img
| |-- fix-usb.sh
| |-- grub.cfg
| |-- help
| | |-- help.msg
| | `-- help2.msg
| |-- initrd.gz
| |-- isolinux.bin
| |-- isolinux.cfg
| |-- libfreshwrapper-flashplayer.so
| |-- libpepflashplayer.so
| |-- slaxen.png
| |-- slaxensave-MusicBazaar.2fs
| |-- slaxensave-getpak.2fs
| |-- toutou_slaxen_6.3.2
| |-- toutou_slaxen_6.3.2.sfs
| |-- vesamenu.c32
| |-- vmlinuz
| `-- zdrv_slaxen_6.3.2.sfs