Linux.com

ytree

Posted by: Administrator on February 02, 2006 05:21 AM

This is a situation where <a href="http://www.han.de/~werner/ytree.html" title="www.han.de">ytree</a www.han.de> shines.
Ytree is a UNIX-based replication of the old DOS-based Xtree (and the short-lived Xtree for Unix), the simpler but workable predecessor to XtreePro and XtreeGold.


In ytree, seeing what files are taking up all the room (among the directories you've logged, so you don't have to wade through large but necessary files) is a matter of setting the sort-order to sort by size (s-s, or s-o-s if you prefer the big ones sorted to the top) while within the file window. Then hit 's' within the directory window to invoke sort-all, where the logged files are displayed as if they were all stored within a single flat directory.

To get rid of the obvious rubbish, tag (with 't') all the files you no longer want. Then, with a single control-D, and confirmation, all of the tagged files are deleted.

Not sure if a given file is needed? Have a quick peek inside it with 'v' (view).



Ytree's tag-and-bag method works on filenames containing spaces and shell-metacharacters without special handling, which makes it much more convenient than cleanup at the command-line.



About the only XtreeGold capabilities I really miss in ytree for file cleanups are the dual-pane view and the branch-grafting function, but Midnight Commander (mc, part of most distros I use) has those, so I keep both programs on systems I own or admin.

#

Return to Disk usage analysis and cleanup tools