概述
背景
win10 环境下, 我需要打印 文件树
问题
思路
环境
os
mintty
tree for windows
类型
概述
准备
攻略 1 份
tree for windows 安装包
操作
tree-1.5.2.2-bin.zip
结果
获取目录如下
.|-- bin| `-- tree.exe|-- contrib| `-- tree| `-- 1.5.2.2| |-- tree-1.5.2.2| |-- tree-1.5.2.2-GnuWin32.README| `-- tree-1.5.2.2-src| |-- CHANGES| |-- INSTALL| |-- LICENSE| `-- README|-- man| `-- cat1| `-- tree.1.txt`-- manifest |-- tree-1.5.2.2-bin.mft `-- tree-1.5.2.2-bin.ver
注意
tree.exe
, 就是我们要找的程序找到 git 的 bin 目录
# 1. 通常会是类似这样的路径## E:\Program Files\Git\usr\bin# 2. 如果你是在不知道, 可以在 git-bash 里, 执行如下命令## 最终会定位到 那个bin目录> cd /usr/bin> start .
将 tree.exe 复制到 bin 目录下
操作
输入命令
> tree --help
结果
刚下完, 解了压
后续学学 tree 吧
这玩意是 2009 年写的
how do I add the ‘tree‘ command to git-bash on Windows?