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. wamp通过phpMyAdmin修改登录密码

    初始安装wamp后,默认mysql是没有密码的,这个时候如果想要修改密码,可以按照以下步骤进行: 第一.打开phpMyAdmin,看到界面如图所示: 第二.通过导航找到“用户”,再找到“编辑权限”进行 ...

  2. Python数据处理——绘制函数图形以及数据拟合

    1.多项式拟合 对散点进行多项式拟合并打印出拟合函数以及拟合后的图形import matplotlib.pyplot as pltimport numpy as npx=np.arange(1,17, ...

  3. rac_安装软件时报版本号过高问题

    原创作品,出自 "深蓝的blog" 博客.欢迎转载,转载时请务必注明下面出处,否则追究版权法律责任. 深蓝的blog:http://blog.csdn.net/huangyanlo ...

  4. 小程序排错(redis导致)

    小程序突然出问题,题库加载不了,程序正常,测试环境同样环境,同样代码都正常,但是线上数据秒过期,怀疑redis过期时间设置有问题,但是检查配置没问题,写入数据带过期时间也正常. redis设置key: ...

  5. PHP+Redis 实例 页面缓存

    前提分析! 上面的图,我分为了三个层级去做页面缓存,其实不一定要三个层面都实现的,如果你做了页面级的,项目初期是够了,作为接口级,基本可以解决很多吞吐量. 对于上面的三个层级,我用了同一个方法去做. ...

  6. CSS3 not

    AND (&&): .registration_form_right input:not([type="radio"]):not([type="check ...

  7. 常用Sql 标量值函数

    1.汉字拼音首字母 /****** Object: UserDefinedFunction [dbo].[fnGetHzPY] Script Date: 08/16/2018 09:04:47 Des ...

  8. 用JWT技术为SpringBoot的API增加授权保护(转),需要自己实现userdetailservice接口

    转自:https://blog.csdn.net/haiyan_qi/article/details/77373900 概述 示例 https://github.com/qihaiyan/jwt-bo ...

  9. MySQL:cannot allocate the memory for the buffer pool

    InnoDB: The InnoDB memory heap is disabled InnoDB: Mutexes and rw_locks use GCC atomic builtins Inno ...

  10. Tomcat闲聊

    上面是Tomcat的执行过程. 下面说几个概念: 1.JSP:这个就是在html文件中嵌入Java代码之后重新生成的一个文件(.jsp的文件) 2.servlet:就是一个处理动态资源的小程序,一般位 ...