Thursday, January 15, 2009

Unix 'Tree' Command

Have you ever wanted to recursively view a path? Forget ls or find. Try the tree command instead.

If you have the LS_COLORS environmental variable set and use the -C switch then the tree command will print the output to the terminal with colors. But wait, it get's better. Using the -d option will print only directories. You can also filter the output with regular expressions, print file permissions and size.

No comments:

Post a Comment