tree 1.5.2.2

Filemanagers, partitioning tools, etc.
Post Reply
Message
Author
User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

tree 1.5.2.2

#1 Post 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.
Attachments
tree-1.5.2.2.pet
(16.28 KiB) Downloaded 1897 times
tree_DOC-1.5.2.2.pet
(3.55 KiB) Downloaded 1739 times
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post 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?

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#3 Post 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.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#4 Post by GustavoYz »

It is like write something like this ???

Code: Select all

ls -laR > list.txt

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#5 Post by Flash »

No, tree lists the directory contents like so.

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#6 Post by GustavoYz »

oh, that's better... :D

Pelo

tree 1.5.2.2

#7 Post 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

Post Reply