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. QT调用C#写的Dll

    参见: https://blog.csdn.net/weixin_42420155/article/details/81060945 C#写的dll是没有dllMain入口函数的,是一种中间语言,需要 ...

  2. prototype 用法

    prototype使得js面向对象使用了prototype之后,使用它里面的属性或者函数 需要new出一个对象才可以使用.否则不使用prototype,直接向对象注入 function Person( ...

  3. Eclipse Mylyn成为顶级项目

    http://www.infoq.com/cn/news/2010/09/eclipse-mylyn/ 作为应用程序的生命周期管理工具,Eclipse Mylyn项目已经被提升为顶级的Eclipse项 ...

  4. 纪念我人生中第一个merge into语句

    做按组织关系汇总功能时,当数据量特别大,或者汇总组织特别多时,运行效率特别低,于是使用了merge into语句. 代码如下: public void updateInsertData(DataSet ...

  5. Mysql命令行备份与还原数据库操作实例

    无论是Windows还是Linux,都可以通过如下命令行形式备份Mysql数据库 备份命令: 在windows的DOS窗口命令行或linux的shell命令行,假设需要备份的数据库是advanced: ...

  6. Linux 中 eclipse 的tomcat端口号被占用

    1.打开ubuntu启动器(快捷键是 win)--键入 sys--找到 系统监视器(System Monitor) 2.打开系统监视器--找到进程中的java 这个进程--结束该进程

  7. 【应用篇】Activiti外置表单实例demo(四)

    在这里我想说的外置表单.是说我们将我们自己的jsp(.form,.html)等页面上传到工作流的数据库中,当任务运行到当前结点时.给我们像前台发送绑定好的表单. 此处是给表单绑定表单的过程 water ...

  8. 设计模式之里氏替换原则(LSP)

    在java等面向对象编程语言里面,我想继承性应该是一大特色吧!所以今天所要讲解的里氏替换原则主要是针对这一特性而提出来的,当我们定义对象的时候,尽量找出对象之间的相同点,然后将其抽象成基类对象.比如水 ...

  9. python-扫描某一网段下的ip

    #!/usr/bin/env python #-*- coding:utf-8 -*- ############################ #File Name: ipscaner.py #Au ...

  10. ccentos 7下安装php5.6并使用nginx + php-fpm部署多个不同端口网站

    作为一个的勤杂工,近期因公司内部信息化的需求,给新进员工提供基础的知识培训和介绍,也为了给公司内部建立一个沟通交流的平台,百度找了开源的百科系统HDwiki和开源的问答系统Tipask问答系统,蛋痛的 ...