转自: http://xnlinux.haotui.com/thread-1669-1-1.html
gao@gao-virtual-machine:~/test$ tree . |-- test1 | |-- test11 | | |-- test111 | | |-- test112 | | `-- test113 | |-- test12 | `-- test13 |-- test2 | |-- test21 | |-- test22 | `-- test23 `-- test3 |-- test31 |-- test32 `-- test33 下面是find . -print|sed -e 's;[^/]*/;|--;g;s;--|; |;g' 命令出来的结果: gao@gao-virtual-machine:~/test$ find . -print|sed -e 's;[^/]*/;|--;g;s;--|; |;g' . |--test3 | |--test31 | |--test33 | |--test32 |--test1 | |--test11 | | |--test111 | | |--test113 | | |--test112 | |--test12 | |--test13 |--test2 | |--test23 | |--test21 | |--test22 使用find即可实现tree的功能了,特别是在没有tree命令的系统里。。 |
相关推荐
CMD命令:开始->运行->键入cmd或command(在命令行里可以看到系统版本、文件系统版本) 命令大全 1. gpedit.msc-----组策略 2. sndrec32-------录音机 3. Nslookup-------IP地址侦测器 ,是一个 监测网络中 DNS...
Linux 文件目录管理 - 关键词:cd, ls, pwd, mkdir, rmdir, tree, touch, ln, rename, stat, file, chmod, chown, locate, find, cp, mv, rm Linux 文件内容查看命令 - 关键词:cat, head, tail, more, less, sed, ...
6:help 获取Shell内置命令的帮助信息 语法:help 命令 7:apt-get 安装卸载程序 第二部分:文件系统 文件系统/文件系统 0:tree 以树形结构显示文件目录结构 1:分区和文件系统 2:文件系统常用命令 df [选项][挂载...
ASSOC 显示或修改文件扩展名关联。 ATTRIB 显示或更改文件属性。 BREAK 设置或清除扩展式 CTRL+C 检查。 BCDEDIT 设置启动数据库中的属性以控制启动加载。...WMIC 在交互式命令 shell 中显示 WMI 信息。
1. linux系统管理命令 1 adduser 1 chfn(change finger information) 1 chsh(change shell) 1 date 2 exit 3 finger 4 free 5 fwhois 5 gitps(gnu interactive tools process status) 5 groupdel(group ...
cd , ls , pwd , mkdir , rmdir , tree , touch , ln , rename , stat , file , chmod , chown , locate , find , cp , mv , rm -关键词: cat , head , tail , more , less , sed , vi ,...
本资源提供了最小的cygwin安装包,能满足平时类shell的工作.最适合在网速慢时打包下载. 可用的命令包括wget ,tar ,bzip2 , find,which ,man,awk,tree,locate,updatedb等.
insertion sort, shell sort, quick sort, merge sort, heap sort), searching algorithms (Binary search tree, Red-Black BST, hashing), 所以程序都用java实现,代码风格简洁,很值得学习。
MS-DOS HELP 命令参考 ANSI.SYS EMM386.EXE Multi-config Append Erase Nlsfunc Attrib Exit Numlock Batch commands Expand Path Break Fasthelp Pause Buffers Fastopen Power Call Fc POWER.EXE Cd Fcbs ...
文件格式为azw3,文字版本,可以用kindle阅读,PC端可以用calibre,可以转成epub所有手机阅读软件都支持,对手机的排版支持还不错. 内容目录 第1天 文本操作指令 1.1 ar 指令:创建、修改或从档案文件中提取文件 1.2 ...
下一代文件列表命令。 向后兼容ls 。 git和diff输出的查看器 用 rust 编写的更直观的du版本。 duf 更好的df替代方案 broot 一种查看和导航目录tree的新方法 fd 一个简单、快速且用户友好的find替代方法。 ...
find grep gzip ldd make md5sum mkdir rm sh tee touch tree 路径/usr/local/sbin/存在于${PATH}变量中: $ echo " ${PATH //:/ \n } " /home/ramon/bin /usr/local/bin /usr/bin /bin /usr/local/sbin /usr/sbin...
前缀发行号-Git Hook 对于懒惰的人来说这是一个git钩子。 :sleeping_face: ... 以下有用的命令将重新初始化在当前目录的子目录中找到的所有存储库。 find . -name .git -type d -prune -exec sh -c 'git --git-
→易于使用的命令历史记录工具。 确保安装键盘快捷键。 →漂亮打印JSON。 最近,我也开始使用 。 →我找到的最快的搜索程序。 就像grep一样,但对我来说效果更好。 →类似于find但更易于使用。 →与cat相比,它是一...
389 | [Find the Difference](https://leetcode.com/problems/find-the-difference/) | [C++](./C++/find-the-difference.cpp) [Python](./Python/find-the-difference.py) | _O(n)_ | _O(1)_ | Easy | | ...
Note: There is a slight mirroring lag between when a change is visible on the web in Gerrit and when repo download will be able to find it for all users, because of replication delays to all servers ...
go语言系统编程,是英文版, What this book covers Chapter 1, Getting started with Go and Unix Systems Programming, starts by defining what systems programming is before talking about the advantages and...
spm-简单的密码管理器spm是一个完全兼容POSIX Shell的脚本,它利用gpg2(1)与基本工具(例如find(1)和tree(1))相结合。 密码存储为加密文件,目录功能作为(子)组。 spm通过标准输入/输出读取/写入密码,使您...
旧版本版本的全志R16平台的tinav2.1的系统打开softAP 2017/9/14 17:25 版本:V1.0 1、原始编译: rootroot@cm-System-Product-Name:~$ cd /home/wwt/ rootroot@cm-System-Product-Name:/home/wwt$ tar ...
twf - Tree View Find twf is a standalone tree view explorer inspired by . Features Standalone, usable from vim, the shell or any other program. Locate files through external programs such as fzf. ...