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]#

  

 
 

最新文章

  1. Js 正则表达式特殊字符含义
  2. javascript正则表达式速查
  3. Java主要有那几种文件类型,各自作用
  4. 翻译【ElasticSearch Server】第一章:开始使用ElasticSearch集群(5)
  5. 基于FPGA的按键扫描程序
  6. 软件授权协议有什么作用,例如GPL、Apache License、CDDL、EPL这些协议有什么区别?
  7. LINUX 文件系统JBD ----深入理解Fsync
  8. 201521123008 《Java程序设计》第十四周学习总结
  9. Mongodb常规操作【一】
  10. 二、OpenStack—keystone组件介绍与安装
  11. 免费申请使用IBM Cloud Lite(轻量套餐) 详细教程指南
  12. <山月记>:中岛敦 -选段
  13. python使用sqlite
  14. SDN期末
  15. 20155217《网络对抗》Exp03 免杀原理与实践
  16. Gibbs采样
  17. 35、XpathNavigator Xpath导航器 System.Xml.XPath;
  18. Ubuntu16.04安装Jenkins
  19. volatile关键字解析(一)
  20. mui.fire 目标页无法监听到 触发事件

热门文章

  1. 【Excle】二维表转化为一维表
  2. kvaser leaf light v2 在Linux 下面的使用方法
  3. CSDN开源夏令营 百度数据可视化实践 ECharts(4)
  4. NHibernate Transformers.AliasToEntityMap 返回Hashtable
  5. nginx 模块简介
  6. Linux学习之tune2fs
  7. mysql之log-slave-updates参数
  8. centos修改启动顺序,登录后提示,启动级别,主机名,免密登录
  9. 关于LNMP服务器 Thinkphp5验证码不显示问题
  10. git忽略已经被提交的文件,以及如何恢复追踪