tree /?
tree /f > tree.txt
pwd 查看当前路径
ls 查看所有当前路径的子文件
cd 改变路径
find . -print | sed -e ‘s;[^/]*/;|____;g;s;____|; |;g‘
echo "alias tree=\"find . -print | sed -e ‘s;[^/]*/;|____;g;s;____|; |;g‘\"" >> ~/.bash_profile && source ~/.bash_profile
原文:http://www.cnblogs.com/hchiu/p/7928768.html