make tree install 目录树状结构工具安装
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 目录树状结构工具安装的更多相关文章
- Java_File类讲解_打印目录树状结构_递归算法
package cn.xiaocangtian.testFile; import java.io.File; public class FileTree { public static void ma ...
- java File类 打印目录树状结构(递归)
import java.io.File; /** * 递归遍历 * */ public class FieTree { public static void main(String[] args) { ...
- 用Django ORM实现树状结构
前言 之前看对于用关系数据库实现树状结构的方法就知道一直做自关联的表,但是感觉自关联查询太慢了,最近看到一篇文章,感觉视野开拓了好多,文章:数据库表设计,没有最好只有最适合来自:微信. 下面就针对这里 ...
- 由简入繁实现Jquery树状结构
在项目中,我们经常会需要一些树状结构的样式来显示层级结构等,比如下图的样式,之前在学.net的时候可以直接拖个服务端控件过来直接使用非常方便.但是利用Jquery的一些插件,也是可以实现这些效果的,比 ...
- paip.tree 生成目录树到txt后的折叠查看
paip.tree 生成目录树到txt后的折叠查看 作者Attilax , EMAIL:1466519819@qq.com 来源:attilax的专栏 地址:http://blog.csdn.ne ...
- tkinter中树状结构的建立(十四)
树状结构的建立 import tkinter from tkinter import ttk wuya = tkinter.Tk() wuya.title("wuya") wuya ...
- 利用checkbox自带属性indeterminate构建含部分选中状态的树状结构
本来上个月就像发的,但是一直忙啊忙的也没时间整理,所以拖到了现在. 好吧上面这句就是废话,我就是感概下.下面是正文. 前段时间在弄一个轻量级的web项目,要构建一个树状结构目录,同时希望能把部分选中的 ...
- JQuery 树状结构 jQuery-treeview.js 插件
由简入繁实现Jquery树状结构 在项目中,我们经常会需要一些树状结构的样式来显示层级结构等,比如下图的样式,之前在学.net的时候可以直接拖个服务端控件过来直接使用非常方便.但是利用Jquery的一 ...
- oracle 树状结构递归 PL/SQL输出控制 包括空格输出控制
树状结构 存储过程中通过递归构建,类似BBS回帖显示,代码共三段: 建表,插入数据,创建存储过程显示: 1.create table article(id number primary key,con ...
随机推荐
- Linux的fuser命令解析
fuser命令是用来显示所有正在使用着指定的file, file system 或者 sockets的进程信息. 例一: #fuser –m –u /mnt/usb1 /mnt/usb1: 1347c ...
- CSAPP:异常控制流
在一般的情况下,处理器处理的指令序列是相邻的(顺序执行). 异常控制流提供了指令的跳转,它一部分是由硬件实现的,一部分是由操作系统实现的. 异常处理 在系统启动时,操作系统分配和初始化一张称为异常表的 ...
- jquery autoComplete的使用代码一则
$(function() { $("#vipCustomer").autocomplete({ source : function(request, response) { $.a ...
- 【MyBatis学习07】动态sql
1. 动态sql 动态sql是mybatis中的一个核心,什么是动态sql?动态sql即对sql语句进行灵活操作,通过表达式进行判断,对sql进行灵活拼接.组装.就拿上一篇博文中对用户的综合查询一例来 ...
- linux 网络性能优化
最近在对程序进行调优,涉及到了网络通信,学习了一下对网络调优的方法,网上的资料很多,针对软件优化方面,大体上主要有两种方式:一是网卡参数,另一个是内核参数. 一. 网卡参数优化 针对网卡参数优化,需要 ...
- vs mvc 视图中找不到 viewdata viewbag的解决方案
1.查看views下的web.config文件是否存在 2.检查config中system.web.mvc ,version中版本号与自己的vs内置mvc版本一致 迁移项目可能有此问题
- LuaStudio编辑调试软件
该编辑调试器最大特点就是能够注入到宿主程序内对lua脚本进行调试.还能够设置断点观察变量的值,功能很强大. 如今已有的编辑器有Notepad++, Editplus, luaforwindows, S ...
- 在modelsim中加入quartus仿真库
找到modelsim安装目录下的modelsim.ini文件. 将modelsim.ini的只读属性去掉. 打开quartus软件.选择Launch Simulation Library Compil ...
- Web前端都学点儿啥?
Web开发如今是如日中天,热的发烫.但是Web开发相关的技术和知识却像N座大山一样,耸立在我们面前,连绵起伏,漫无边际.那么这些山头那些我们应该占领,那些我们应该绕开,很多人看着就蒙了,这不光是初学者 ...
- 【Mac + Appium学习(一)】之安装Appium环境前提准备
环境: Appium version :1.9.1 Appium-desktop:1.7.1 Xcode:10.0 IOS:iPhone5S(10.3.3) Android:6.0.1 Mac:10. ...