Seeing the forest with tree
In Full View
The tree command can provide a clear view of all your files and directories and offers a few advantages over the usual ls command.
tree command  is a tool that I'd overlooked until recently. After trying it for several weeks, however, I am starting to prefer its tree-like display of directories and files to the plain lists generated by
Part of the reason is that, in these GUI-oriented days, even a directory tree made with ASCII characters is more comfortable than no structural display at all. The functional differences between
ls are minimal. The two commands share a few options, such as
-a for displaying all files, and even when the options are different, the functionality remains similar. The largest exception I have noticed is that
ls offers an option for the number of columns in which to display results; the
tree display makes a single column unavoidable.
You have to look closely to see the differences, but
tree is consistently more versatile, starting with, unlike
ls, recursion. By default,
tree displays all files in all subdirectories.
Buy this article as PDF
Should you trust an online service to store your online passwords?
New B+ board lets you build cool things without the complication of a powered USB hub.
Redmond rushes in to root out alleged malware haven.
New initiative will bring futuristic virtual reality effects to the web surfing experience.
Dyreza malware launches a man-in-the-middle attack that compromises SSL.
New cloud combines worldwide access with local attention to data security.
A first cousin of the recent Heartbleed attack affects EAP-based wireless and peer-to-peer authentication.
FOSS community acts to protect freedom of choice for laptop devices.
Quintessential open source browser shores up its market share with a step toward the proprietary dark side.
Authorities in 16 countries take action against users of the imfamous BlackShades malware tool.