http://futeng.iteye.com/blog/2071867

http://zhou123.blog.51cto.com/4355617/1196415

wget ftp://mama.indstate.edu/linux/tree/tree-1.7.0.tgz

[root@hadoop3 local]# tar -xvf tree-1.7.0.tgz
tree-1.7.0/CHANGES
tree-1.7.0/INSTALL
tree-1.7.0/LICENSE
tree-1.7.0/Makefile
tree-1.7.0/README
tree-1.7.0/TODO
tree-1.7.0/color.c
tree-1.7.0/hash.c
tree-1.7.0/html.c
tree-1.7.0/json.c
tree-1.7.0/strverscmp.c
tree-1.7.0/tree.c
tree-1.7.0/tree.h
tree-1.7.0/unix.c
tree-1.7.0/xml.c
tree-1.7.0/doc/tree.1
tree-1.7.0/doc/tree.1.fr
tree-1.7.0/doc/xml.dtd
[root@hadoop3 local]# ll -as
总用量 52
0 drwxr-xr-x. 13 root root 171 7月 12 09:53 .
0 drwxr-xr-x. 13 root root 155 5月 15 19:26 ..
4 drwxr-xr-x. 2 root root 4096 7月 11 14:27 bin
0 drwxr-xr-x. 2 root root 6 11月 5 2016 etc
0 drwxr-xr-x. 2 root root 6 11月 5 2016 games
0 drwxr-xr-x. 4 root root 36 7月 11 14:27 include
0 drwxr-xr-x. 5 root root 83 7月 11 14:27 lib
0 drwxr-xr-x. 2 root root 6 11月 5 2016 lib64
0 drwxr-xr-x. 2 root root 6 11月 5 2016 libexec
0 drwxr-xr-x. 2 root root 6 11月 5 2016 sbin
0 drwxr-xr-x. 7 root root 77 7月 11 14:27 share
0 drwxr-xr-x. 2 root root 6 11月 5 2016 src
0 drwxr-xr-x 3 root root 236 7月 12 09:53 tree-1.7.0
48 -rw-r--r-- 1 root root 47082 7月 12 09:52 tree-1.7.0.tgz
[root@hadoop3 local]# cd tree-1.7.0/
[root@hadoop3 tree-1.7.0]# ll -as
总用量 172
0 drwxr-xr-x 3 root root 236 7月 12 09:53 .
0 drwxr-xr-x. 13 root root 171 7月 12 09:53 ..
12 -rw-r--r-- 1 root root 10513 4月 23 2014 CHANGES
16 -rw-r--r-- 1 root root 16282 4月 19 2014 color.c
0 drwxr-xr-x 2 root root 52 7月 12 09:53 doc
4 -rw-r--r-- 1 root root 3151 4月 22 2014 hash.c
16 -rw-r--r-- 1 root root 14309 4月 22 2014 html.c
4 -rw-r--r-- 1 root root 596 6月 24 2011 INSTALL
12 -rw-r--r-- 1 root root 9421 4月 21 2014 json.c
20 -rw-r--r-- 1 root root 18009 8月 13 2004 LICENSE
4 -rw-r--r-- 1 root root 2666 4月 19 2014 Makefile
8 -rw-r--r-- 1 root root 5620 4月 22 2014 README
8 -rw-r--r-- 1 root root 5322 8月 28 2008 strverscmp.c
4 -rw-r--r-- 1 root root 2210 6月 24 2011 TODO
36 -rw-r--r-- 1 root root 36011 4月 24 2014 tree.c
8 -rw-r--r-- 1 root root 5454 4月 21 2014 tree.h
8 -rw-r--r-- 1 root root 7556 4月 19 2014 unix.c
12 -rw-r--r-- 1 root root 8934 4月 22 2014 xml.c
[root@hadoop3 tree-1.7.0]# cat INSTALL
Installation instructions: 1. Edit the Makefile for your OS. Comment out the Linux options and uncomment
the options for your OS.
2. Type: make
3. Type: make install
4. Enjoy colorful directory trees. I cannot test on non-Linux machines, so please feel free to contribute
porting information, bug reports, compile options, patches, etc for porting to
other OS's to ice@mama.indstate.edu. I would also welcome any localization efforts, particularly translating the
man page to other languages. And of course feel free to suggest options and
improvements you would like to see in tree.
[root@hadoop3 tree-1.7.0]# make
gcc -ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o tree.o tree.c
gcc -ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o unix.o unix.c
gcc -ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o html.o html.c
gcc -ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o xml.o xml.c
gcc -ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o json.o json.c
gcc -ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o hash.o hash.c
gcc -ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o color.o color.c
gcc -o tree tree.o unix.o html.o xml.o json.o hash.o color.o
[root@hadoop3 tree-1.7.0]# make install
install -d /usr/bin
install -d /usr/man/man1
if [ -e tree ]; then \
install tree /usr/bin/tree; \
fi
install doc/tree.1 /usr/man/man1/tree.1
[root@hadoop3 tree-1.7.0]# tree
.
├── CHANGES
├── color.c
├── color.o
├── doc
│   ├── tree.1
│   ├── tree.1.fr
│   └── xml.dtd
├── hash.c
├── hash.o
├── html.c
├── html.o
├── INSTALL
├── json.c
├── json.o
├── LICENSE
├── Makefile
├── README
├── strverscmp.c
├── TODO
├── tree
├── tree.c
├── tree.h
├── tree.o
├── unix.c
├── unix.o
├── xml.c
└── xml.o 1 directory, 26 files
[root@hadoop3 tree-1.7.0]#

  

 
 

make tree install 目录树状结构工具安装的更多相关文章

  1. Java_File类讲解_打印目录树状结构_递归算法

    package cn.xiaocangtian.testFile; import java.io.File; public class FileTree { public static void ma ...

  2. java File类 打印目录树状结构(递归)

    import java.io.File; /** * 递归遍历 * */ public class FieTree { public static void main(String[] args) { ...

  3. 用Django ORM实现树状结构

    前言 之前看对于用关系数据库实现树状结构的方法就知道一直做自关联的表,但是感觉自关联查询太慢了,最近看到一篇文章,感觉视野开拓了好多,文章:数据库表设计,没有最好只有最适合来自:微信. 下面就针对这里 ...

  4. 由简入繁实现Jquery树状结构

    在项目中,我们经常会需要一些树状结构的样式来显示层级结构等,比如下图的样式,之前在学.net的时候可以直接拖个服务端控件过来直接使用非常方便.但是利用Jquery的一些插件,也是可以实现这些效果的,比 ...

  5. paip.tree 生成目录树到txt后的折叠查看

    paip.tree 生成目录树到txt后的折叠查看 作者Attilax ,  EMAIL:1466519819@qq.com  来源:attilax的专栏 地址:http://blog.csdn.ne ...

  6. tkinter中树状结构的建立(十四)

    树状结构的建立 import tkinter from tkinter import ttk wuya = tkinter.Tk() wuya.title("wuya") wuya ...

  7. 利用checkbox自带属性indeterminate构建含部分选中状态的树状结构

    本来上个月就像发的,但是一直忙啊忙的也没时间整理,所以拖到了现在. 好吧上面这句就是废话,我就是感概下.下面是正文. 前段时间在弄一个轻量级的web项目,要构建一个树状结构目录,同时希望能把部分选中的 ...

  8. JQuery 树状结构 jQuery-treeview.js 插件

    由简入繁实现Jquery树状结构 在项目中,我们经常会需要一些树状结构的样式来显示层级结构等,比如下图的样式,之前在学.net的时候可以直接拖个服务端控件过来直接使用非常方便.但是利用Jquery的一 ...

  9. oracle 树状结构递归 PL/SQL输出控制 包括空格输出控制

    树状结构 存储过程中通过递归构建,类似BBS回帖显示,代码共三段: 建表,插入数据,创建存储过程显示: 1.create table article(id number primary key,con ...

随机推荐

  1. 【Excle】在方框内打勾

    在excel中,输入☑可以用控件,也可以用设置windings 2字体来设置. 如下图所示D列,字体设置成Wingdings 2字体后,输入R显示☑,输入S显示☒. 下面实现2个功能 从下拉菜单输入 ...

  2. 更改 easyUI 的皮肤样式

    我的版本是:jquery-easyui-1.3.2.根据官方提供的皮肤样式,——在theme 里面: 只需要在引入的 页面中 link样式的地址改变即可: <link rel="sty ...

  3. 递归 recursive

    递归函数是在一个函数通过名字调用自身的情况下构成的. function factorail(num) { if(num <= 1) { return 1; } else{ return num ...

  4. JS的同步加载、异步加载

    在使用js展开式菜单时,发现只有加载完页面包含的js文件时,展开菜单才能折叠起来. 查找了一下原因:是因为js页面加载使用的是同步模式,又称阻塞模式,会阻止浏览器的后续处理,停止后续的解析,只有当当前 ...

  5. Linux内核设计基础(五)之内存管理

    我感觉学习操作系统首先要从内存分配和管理入手. 首先我们应该知道现代操作系统是以页为单位进行内存管理的,32位体系结构支持4KB的页.而64位体系结构支持8KB的页.页是用来分配的.怎样才干进行高效和 ...

  6. atitit.跨语言执行cmd cli api的原理及兼容性设计草案

    atitit.跨语言执行cmd cli api的原理及兼容性设计草案 1. 标准输入,标准输出,标准错误与重新定向1 2. 常见问题2 2.1. 执行bat文件2 2.2. 执行bat文件  /c   ...

  7. Atitit.编程语言原理---方法重载的实现与设计 调用方法的原理

    Atitit.编程语言原理---方法重载的实现与设计 调用方法的原理 1. 重载包括:普通方法的重载和构造方法的重载 1 1.1. 横向重载”和“纵向重载”1 1.2. 方法签名通过  方法名称,参数 ...

  8. 实现html锚点的两种方式

    1,a标签+name属性. 2,使用标签的id属性:

  9. [转载]linux下svn命令使用大全

    原文地址:http://blog.chinaunix.net/uid-22150747-id-189264.html 最近经常使用svn进行代码管理,这些命令老是记不住,得经常上网查,终于找了一个li ...

  10. 美团HD(7)-添加取消搜索按钮

    DJSelectCityViewController.m #pragma mark - UISearchBar 代理方法 /** SearchBar开始编辑 */ - (void)searchBarT ...