- 浏览: 142310 次
- 性别:
- 来自: 上海
文章分类
最新评论
-
dwangel:
现在可以用WICD这个 东西来管理无线上网了。
关于Ubuntu的使用心得之一(解决wep无法无线上网问题) -
seamanjiang:
支持,这个要顶的
关于Ubuntu下的一些下载工具感想 -
eyejava:
Good WayMark.
用RAP来练习口语 -
finaleden:
某院士说了:中国科技没有哪个行业不落后西方十年的,it业同样也 ...
关于国内站点的一些思考 -
liuming:
是啊,说起这类问题确实很认人气愤,现在都不想提了。不过有时候也 ...
关于国内站点的一些思考
以前在Win下用过一个tree指令,可以显示目录结构。而Linux里面好像由于最近几年GUI的发展,将这个命令程序删除了。在Synaptic里面找到tree,再次安装上,可以在Terminal中显示目录的树型结构,感觉还是挺实用的一个命令,尤其是在学习的时候,不用IDE的情况下,更是有用了。
NAME
tree - list contents of directories in a tree-like format.
SYNOPSIS
tree [-adfgilnopqrstuxACDFNS] [-L level [-R]] [-H baseHREF] [-T title]
[-o filename] [--nolinks] [-P pattern] [-I pattern] [--inodes]
[--device] [--noreport] [--dirsfirst] [--version] [--help] [directory
...]
DESCRIPTION
Tree is a recursive directory listing program that produces a depth
indented listing of files, which is colorized ala dircolors if the
LS_COLORS environment variable is set and output is to tty. With no
arguments, tree lists the files in the current directory. When direc‐
tory arguments are given, tree lists all the files and/or directories
found in the given directories each in turn. Upon completion of list‐
ing all files/directories found, tree returns the total number of files
and/or directories listed.
By default, when a symbolic link is encountered, the path that the sym‐
bolic link refers to is printed after the name of the link in the for‐
mat:
name -> real-path
If the ‘-l’ option is given and the symbolic link refers to an actual
directory, then tree will follow the path of the symbolic link as if it
were a real directory.
OPTIONS
Tree understands the following command line switches:
--help Outputs a verbose usage listing.
--version
Outputs the version of tree.
-a All files are printed. By default tree does not print hidden
files (those beginning with a dot ‘.’). In no event does tree
print the file system constructs ‘.’ (current directory) and
‘..’ (previous directory).
-d List directories only.
-f Prints the full path prefix for each file.
-i Makes tree not print the indentation lines, useful when used in
conjunction with the -f option.
-l Follows symbolic links if they point to directories, as if they
were directories. Symbolic links that will result in recursion
are avoided when detected.
-x Stay on the current file-system only. Ala find -xdev.
-P pattern
List only those files that match the wild-card pattern. Note:
you must use the -a option to also consider those files begin‐
ning with a dot ‘.’ for matching. Valid wildcard operators are
‘*’ (any zero or more characters), ‘?’ (any single character),
‘[...]’ (any single character listed between brackets (optional
- (dash) for character range may be used: ex: [A-Z]), and
‘[^...]’ (any single character not listed in brackets) and ‘|’
separates alternate patterns.
-I pattern
Do not list those files that match the wild-card pattern.
--noreport
Omits printing of the file and directory report at the end of
the tree listing.
-p Print the protections for each file (as per ls -l).
-s Print the size of each file along with the name.
-u Print the username, or UID # if no username is available, of the
file.
-g Print the group name, or GID # if no group name is available, of
the file.
-D Print the date of the last modification time for the file
listed.
--inodes
Prints the inode number of the file or directory
--device
Prints the device number to which the file or directory belongs
-F Append a ‘/’ for directories, a ‘=’ for socket files, a ‘*’ for
executable files and a ‘|’ for FIFO’s, as per ls -F
-q Print non-printable characters in filenames as question marks
instead of the default carrot notation.
-N Print non-printable characters as is instead of the default car‐
rot notation.
-r Sort the output in reverse alphabetic order.
-t Sort the output by last modification time instead of alphabeti‐
cally.
--dirsfirst
List directories before files.
-n Turn colorization off always, over-ridden by the -C option.
-C Turn colorization on always, using built-in color defaults if
the LS_COLORS environment variable is not set. Useful to col‐
orize output to a pipe.
-A Turn on ANSI line graphics hack when printing the indentation
lines.
-S Turn on ASCII line graphics (useful when using linux console
mode fonts). This option is now equivalent to ‘--charset=IBM437’
and will eventually be depreciated.
-L level
Max display depth of the directory tree.
-R Recursively cross down the tree each level directories (see -L
option), and at each of them execute tree again adding ‘-o
00Tree.html’ as a new option.
-H baseHREF
Turn on HTML output, including HTTP references. Useful for ftp
sites. baseHREF gives the base ftp location when using HTML
output. That is, the local directory may be ‘/local/ftp/pub’,
but it must be referenced as ‘ftp://hostname.organiza‐
tion.domain/pub’ (baseHREF should be ‘ftp://hostname.organiza‐
tion.domain’). Hint: don’t use ANSI lines with this option, and
don’t give more than one directory in the directory list. If you
wish to use colors via CCS stylesheet, use the -C option in
addition to this option to force color output.
-T title
Sets the title and H1 header string in HTML output mode.
--charset charset
Set the character set to use when outputting HTML and for line
drawing.
--nolinks
Turns off hyperlinks in HTML output.
-o filename
Send output to filename.
NAME
tree - list contents of directories in a tree-like format.
SYNOPSIS
tree [-adfgilnopqrstuxACDFNS] [-L level [-R]] [-H baseHREF] [-T title]
[-o filename] [--nolinks] [-P pattern] [-I pattern] [--inodes]
[--device] [--noreport] [--dirsfirst] [--version] [--help] [directory
...]
DESCRIPTION
Tree is a recursive directory listing program that produces a depth
indented listing of files, which is colorized ala dircolors if the
LS_COLORS environment variable is set and output is to tty. With no
arguments, tree lists the files in the current directory. When direc‐
tory arguments are given, tree lists all the files and/or directories
found in the given directories each in turn. Upon completion of list‐
ing all files/directories found, tree returns the total number of files
and/or directories listed.
By default, when a symbolic link is encountered, the path that the sym‐
bolic link refers to is printed after the name of the link in the for‐
mat:
name -> real-path
If the ‘-l’ option is given and the symbolic link refers to an actual
directory, then tree will follow the path of the symbolic link as if it
were a real directory.
OPTIONS
Tree understands the following command line switches:
--help Outputs a verbose usage listing.
--version
Outputs the version of tree.
-a All files are printed. By default tree does not print hidden
files (those beginning with a dot ‘.’). In no event does tree
print the file system constructs ‘.’ (current directory) and
‘..’ (previous directory).
-d List directories only.
-f Prints the full path prefix for each file.
-i Makes tree not print the indentation lines, useful when used in
conjunction with the -f option.
-l Follows symbolic links if they point to directories, as if they
were directories. Symbolic links that will result in recursion
are avoided when detected.
-x Stay on the current file-system only. Ala find -xdev.
-P pattern
List only those files that match the wild-card pattern. Note:
you must use the -a option to also consider those files begin‐
ning with a dot ‘.’ for matching. Valid wildcard operators are
‘*’ (any zero or more characters), ‘?’ (any single character),
‘[...]’ (any single character listed between brackets (optional
- (dash) for character range may be used: ex: [A-Z]), and
‘[^...]’ (any single character not listed in brackets) and ‘|’
separates alternate patterns.
-I pattern
Do not list those files that match the wild-card pattern.
--noreport
Omits printing of the file and directory report at the end of
the tree listing.
-p Print the protections for each file (as per ls -l).
-s Print the size of each file along with the name.
-u Print the username, or UID # if no username is available, of the
file.
-g Print the group name, or GID # if no group name is available, of
the file.
-D Print the date of the last modification time for the file
listed.
--inodes
Prints the inode number of the file or directory
--device
Prints the device number to which the file or directory belongs
-F Append a ‘/’ for directories, a ‘=’ for socket files, a ‘*’ for
executable files and a ‘|’ for FIFO’s, as per ls -F
-q Print non-printable characters in filenames as question marks
instead of the default carrot notation.
-N Print non-printable characters as is instead of the default car‐
rot notation.
-r Sort the output in reverse alphabetic order.
-t Sort the output by last modification time instead of alphabeti‐
cally.
--dirsfirst
List directories before files.
-n Turn colorization off always, over-ridden by the -C option.
-C Turn colorization on always, using built-in color defaults if
the LS_COLORS environment variable is not set. Useful to col‐
orize output to a pipe.
-A Turn on ANSI line graphics hack when printing the indentation
lines.
-S Turn on ASCII line graphics (useful when using linux console
mode fonts). This option is now equivalent to ‘--charset=IBM437’
and will eventually be depreciated.
-L level
Max display depth of the directory tree.
-R Recursively cross down the tree each level directories (see -L
option), and at each of them execute tree again adding ‘-o
00Tree.html’ as a new option.
-H baseHREF
Turn on HTML output, including HTTP references. Useful for ftp
sites. baseHREF gives the base ftp location when using HTML
output. That is, the local directory may be ‘/local/ftp/pub’,
but it must be referenced as ‘ftp://hostname.organiza‐
tion.domain/pub’ (baseHREF should be ‘ftp://hostname.organiza‐
tion.domain’). Hint: don’t use ANSI lines with this option, and
don’t give more than one directory in the directory list. If you
wish to use colors via CCS stylesheet, use the -C option in
addition to this option to force color output.
-T title
Sets the title and H1 header string in HTML output mode.
--charset charset
Set the character set to use when outputting HTML and for line
drawing.
--nolinks
Turns off hyperlinks in HTML output.
-o filename
Send output to filename.
发表评论
-
惨痛教训:一定要做CHECKSUM
2007-08-19 20:46 2679最近要为自己的台式装feisty,于是去官网上下了704 de ... -
最近通过升级部分解决的两个小问题
2007-08-07 00:24 1539最近在UBUNTU下最让人annoying的两件事: 1。JA ... -
EDGY下的Microphone失效解决方法
2007-07-10 21:09 1861虽然用U已经接近半年,但是却一直没机会使用MIC,最近由于一些 ... -
关于国内站点的一些思考
2007-05-02 15:46 2238其实我要装虚拟机的另一个原因就是,国内的网站对于开源,甚至说是 ... -
QQ连不上了,damn
2007-03-08 22:20 1385NND,今天开始Gaim连接QQ老失败,难道又是腾讯在搞鬼? -
关于Ubuntu下的一些下载工具感想
2007-03-07 00:16 22736用Ubuntu有一段时间了, ... -
今天的一点收获
2007-03-04 05:03 1594今天有两个意外,一个是在源上有了新版的文泉驿正式版下载0.8版 ... -
关于Ubuntu中使用Eclipse的一点小问题
2007-02-28 01:21 1347我的JDK是通过Synaptic安装的,因为平时在WIN中装过 ... -
Gaim与scim的不兼容问题
2007-02-26 22:01 1235快被整得崩溃了,gaim现在挂的太频繁了。可以肯定,是和sci ... -
搬迁前的一些准备
2007-01-21 21:19 1211常用软件列表 日常类 1.Bitcomet-----& ... -
Google到的一篇关于Linux分区的讨论
2007-01-22 21:18 1393http://justlinux.com/forum/arch ... -
关于Ubuntu的使用心得之一(解决wep无法无线上网问题)
2007-01-31 03:24 20460装了Ubuntu有一周多了,期间自然是走了些弯路,不过还是颇有 ... -
UBUNTU下的噪音问题
2007-02-12 02:25 2873前几天升级了一下内核,但是之后出现了问题。无论是平时系统声音还 ... -
安装tomcat
2007-02-21 02:12 1354装汤母猫是必须的,毕竟还是民工嘛。去apache的网站down ... -
安装两个常用的数据库
2007-02-23 23:43 1151社会进步了,linux也鸟枪换炮了,现在在ubuntu的培养下 ...
相关推荐
jsTree-directive, jsTree的Angular 指令 文档 jstree指令jsTree的Angular 指令文档文档使用 bower 安装$ bower i jstree-directive教程使用 jsTree,Angularjs和Expressjs语言构建一个基于We
创建一个tree控件需要定义一个自定义指令,如`<tree>`,这个指令将负责渲染并处理树的节点。 3. **数据模型** Tree控件的核心是其数据模型。你需要一个数组或者对象来表示树的结构,每个节点包含其子节点的引用。...
2. **Taglib使用**:在JSP页面中通过`<%@ taglib %> `指令引入E3.Tree的标签库。 3. **classpath配置**:确保E3.Tree的JAR文件被正确地包含在项目的类路径中。 4. **业务数据对象**:创建代表树节点的数据模型,这些...
angular-bootstrap-nav-tree, 在 Bootstrap"nav" 列表中,创建基于树的一个AngularJS指令 angular-bootstrap-nav-tree这是使用 Bootstrap CSS的Angular JS应用的树形指令。示例:...
对于DAO,我们需要包含`#import`指令引入DAO库,并创建CDaoDatabase和CDaoRecordset对象来连接数据库和操作数据。对于ODBC,我们需要建立ODBC数据源,然后使用CDatabase和CRecordset类。 在这个例子中,可能的情况...
在Vue.js框架中,Ivew UI库是一个广泛使用的组件库,它提供了许多美观且功能丰富的组件,如Tree(树形组件)和Poptip(气泡提示)。本篇文章将详细探讨如何结合这两个组件,实现在鼠标移动到Tree节点上时,通过...
标题中的“前端项目-ion-tree-list.zip”表明这是一个与前端开发相关的项目,具体是关于一个名为“ion-tree-list”的组件或指令。这个组件主要用于在用户界面上以树状结构展示嵌套的列表项,通常用于组织层次结构...
驱动程序是操作系统与硬件设备之间的桥梁,它们负责解释硬件指令并协调硬件与软件之间的交互。驱动程序查看器能够列出所有驱动程序,使得用户可以检查驱动是否是最新的,是否存在兼容性问题,或者是否有已知的安全...
普通网络终端计算机在访问某一个站点时,都是在输入欲访问主机的域名后,再由本地计算机向DNS服务器发出查询指令,DNS服务器通过域名管理系统查询对应的IP地址,然后将查询到的IP地址发送给本地计算机,由本地计算机...
在这个名为"前端项目-tree-grid-directive.zip"的压缩包中,包含了一个使用AngularJS实现的树网格指令。AngularJS是一款强大的前端JavaScript框架,它通过声明式编程和依赖注入来简化Web应用的开发。下面将详细探讨...
子表可能使用`v-for`指令动态渲染,同时提供增删改查的按钮或操作栏。 3. **数据绑定(Data Binding)**:Vue的数据双向绑定使得在用户操作子表时,可以直接修改绑定的数据,然后通过`axios`等库向后端发送请求,...
《ASM Tree库2.1版本详解与应用》 ASM是一个Java字节码操控和分析框架,它可以直接解析和生成Java类文件,而ASM Tree库则是ASM框架的一部分,它提供了将字节码转换为抽象语法树(AST)的能力,进而便于进行代码分析...
3.56 tree指令:以树状图显示目录内容 3.57 umount指令:卸除文件系统 第4天 网络通信指令 4.1 apachectl指令:apache HTTP服务器控制接口 4.2 arp指令:地址转换协议 4.3 arping指令:ARP请求报文 4.4 arpwatch指令...
1. **Vue基础知识**:了解并使用Vue的生命周期、数据绑定、计算属性、指令(如v-if、v-for)、组件、事件处理(@click、@input)等。 2. **Element UI**:掌握el-tree组件的基本使用,包括加载数据、自定义节点模板...
1. **可定制化**:Angular Tree Control允许开发者自定义树节点的显示样式和行为,通过配置模板和指令,可以轻松调整节点的外观和交互方式。这为开发者提供了极大的灵活性,可以根据项目需求创建独特的树形视图。 2...
在Vue.js中,可以通过`v-on`指令绑定事件监听器,如`@dragstart`、`@dragenter`、`@drop`等,来处理拖放过程中的各个阶段。同时,Vue的数据绑定机制使得当模型数据改变时,视图会自动更新,因此,只需要在正确的地方...
Vue JSON Tree View是基于这个框架构建的,因此在使用该插件前,需要对Vue的基本概念、组件系统和指令有基本了解。 2. **JSON数据格式** JSON(JavaScript Object Notation)是一种轻量级的数据交换格式,易于人...
《ASM Tree库2.2.1源码解析与应用》 ASM Tree库是Java字节码操作框架ASM的一个重要组成部分,其版本2.2.1提供了对Java类结构的树形表示,使得开发者能够更方便地理解和修改字节码。ASM库本身是一个强大的工具,用于...
在计算机科学中,数据结构是组织、管理和存储数据的方式,而算法则是解决特定问题的步骤或指令集。这两者是编程和软件开发的基础,对于提升程序效率和解决问题的能力至关重要。 首先,我们要理解树是一种非线性的...
### 微机原理8086指令集与DOS命令详解 #### 一、微机原理与8086指令集的重要性 在学习微机原理的过程中,理解和掌握8086指令集是非常关键的一步。8086作为一款经典的16位微处理器,其指令集不仅对于学习微机原理...