Friday, January 4, 2013

How to Display Directory Structure Linux/Unix


The below command displays the directory tree structure

ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'

More information at http://www.centerkey.com/tree/

No comments: