- 浏览: 139844 次
- 性别:
- 来自: 上海
文章分类
最新评论
-
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 2598最近要为自己的台式装feisty,于是去官网上下了704 de ... -
最近通过升级部分解决的两个小问题
2007-08-07 00:24 1479最近在UBUNTU下最让人annoying的两件事: 1。JA ... -
EDGY下的Microphone失效解决方法
2007-07-10 21:09 1796虽然用U已经接近半年,但是却一直没机会使用MIC,最近由于一些 ... -
关于国内站点的一些思考
2007-05-02 15:46 2202其实我要装虚拟机的另一个原因就是,国内的网站对于开源,甚至说是 ... -
QQ连不上了,damn
2007-03-08 22:20 1349NND,今天开始Gaim连接QQ老失败,难道又是腾讯在搞鬼? -
关于Ubuntu下的一些下载工具感想
2007-03-07 00:16 22650用Ubuntu有一段时间了, ... -
今天的一点收获
2007-03-04 05:03 1564今天有两个意外,一个是在源上有了新版的文泉驿正式版下载0.8版 ... -
关于Ubuntu中使用Eclipse的一点小问题
2007-02-28 01:21 1299我的JDK是通过Synaptic安装的,因为平时在WIN中装过 ... -
Gaim与scim的不兼容问题
2007-02-26 22:01 1169快被整得崩溃了,gaim现在挂的太频繁了。可以肯定,是和sci ... -
搬迁前的一些准备
2007-01-21 21:19 1177常用软件列表 日常类 1.Bitcomet-----& ... -
Google到的一篇关于Linux分区的讨论
2007-01-22 21:18 1356http://justlinux.com/forum/arch ... -
关于Ubuntu的使用心得之一(解决wep无法无线上网问题)
2007-01-31 03:24 20427装了Ubuntu有一周多了,期间自然是走了些弯路,不过还是颇有 ... -
UBUNTU下的噪音问题
2007-02-12 02:25 2812前几天升级了一下内核,但是之后出现了问题。无论是平时系统声音还 ... -
安装tomcat
2007-02-21 02:12 1322装汤母猫是必须的,毕竟还是民工嘛。去apache的网站down ... -
安装两个常用的数据库
2007-02-23 23:43 1122社会进步了,linux也鸟枪换炮了,现在在ubuntu的培养下 ...
相关推荐
jsTree-directive, jsTree的Angular 指令 文档 jstree指令jsTree的Angular 指令文档文档使用 bower 安装$ bower i jstree-directive教程使用 jsTree,Angularjs和Expressjs语言构建一个基于We
普通网络终端计算机在访问某一个站点时,都是在输入欲访问主机的域名后,再由本地计算机向DNS服务器发出查询指令,DNS服务器通过域名管理系统查询对应的IP地址,然后将查询到的IP地址发送给本地计算机,由本地计算机...
3.56 tree指令:以树状图显示目录内容 3.57 umount指令:卸除文件系统 第4天 网络通信指令 4.1 apachectl指令:apache HTTP服务器控制接口 4.2 arp指令:地址转换协议 4.3 arping指令:ARP请求报文 4.4 arpwatch指令...
Vue iview tree+poptip 鼠标移动使用气泡显示完整文字
前端项目-ion-tree-list,用于显示嵌套列表项的离子指令。
前端项目-tree-grid-directive,树网格的AngularJS指令,使用引导程序
angular-bootstrap-nav-tree, 在 Bootstrap"nav" 列表中,创建基于树的一个AngularJS指令 angular-bootstrap-nav-tree这是使用 Bootstrap CSS的Angular JS应用的树形指令。示例:...
ASM Tree API可以视为对上述两种数据结构的抽象表达方式,它以树形结构来表示字节码的内部结构,如方法、字段、指令等,并提供了对这些树节点进行操作的API。通过这种API,用户可以更直观、更方便地理解和操作Java...
用于显示嵌套列表离子项目的离子指令。 检查链接。 笔记: 我正在积极寻找可以将该库移植到贡献者。 如果您对此感兴趣,请随时给。 安装 bower install ion-tree-list --save 在您的HEAD标签中添加: [removed]...
my_tree_directive 自定义的角度指令,用于具有分页和搜索功能的简单数据树结构。官方页面: : 我刚刚开始使用angularJs自定义指令来实现可扩展的数据树。 该指令的主要特点是: 可插拔可搜寻的分页如何使用我的树...
执行tree指令,它会列出指定目录下的所有文件,包括子目录里的文件。 语法tree [-aACdDfFgilnNpqstux][-I ][-P ][目录...] 参数说明: -a 显示所有文件和目录。 -A 使用ASNI绘图字符显示树状图而非以ASCII字符组合。...
Angular JSON树 创建此插件是为了解决一个常见的开发问题:如何轻松可视化JSON / JS对象树。 从开发的角度来看,当查询API端点并希望... 包括angular-json-tree作为您的应用程序的依赖项 angular . module ( 'myApp'
进入到指定文件夹中,生成文件树 使用指令 tree -L 2 ,如下/TextScanning tree -L 2。
$ bower install ez-file-tree ##演示 请参阅的index.html演示。 ##配置 图标类之类的东西是可配置的,只需覆盖EzFileTreeConfig常量即可。 ##关于 该指令不仅仅是一个递归树。 它还根据特定操作在每个项目上...
主要介绍了AngularJS递归指令实现Tree View效果,结合实例形式分析了AngularJS基于递归指令实现树形结构层次数据的相关操作步骤与注意事项,需要的朋友可以参考下
该指令允许您创建带有子行的表 贡献者 ui-tree-grid 团队: 安装 bower install ui-tree-grid --save 设置 CSS < link rel =" stylesheet " href =" //maxcdn.bootstrapcdn....
汇编指令与二进制代码对照表汇编指令与二进制代码对照表
角度简单的树递归树的角度指令用法: 准备: npm install测试: npm test跑步: 启动'app/index.html'
1.0.1 指令编码格式 1.0.2 寄存器文件结构 1.0.3 指令流水线 1.0.4 Pascal架构(待续) 1.1 GCN设备 1.1.0 核心微架构 1.1.1 指令编码格式 1.1.2 寄存器文件结构 1.1.3 指令流水线 1.2 GPU设备上的条件分支...