tree 的用法
One way is to use patterns with the -I and -P switches:
tree -f -I "bin|unitTest" -P "*.[ch]|*.[ch]pp." your_dir/
The -f prints the full path for each file, and -I excludes the files in the pattern here separated by a vertical bar. The -P switch inlcudes only the files listed in the pattern matching a certain extension.