Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac 终端文件目录树状(tree)显示 #72

Open
Qingquan-Li opened this issue Nov 10, 2017 · 0 comments
Open

Mac 终端文件目录树状(tree)显示 #72

Qingquan-Li opened this issue Nov 10, 2017 · 0 comments
Labels

Comments

@Qingquan-Li
Copy link
Owner

文件目录树状(tree)显示

tree

安装 tree

使用 brew 安装

brew install tree

使用

  • 直接使用 tree 命令,会在当前文件目录下,递归输出所有文件层级
    $ tree
  • 限制层级
    $ tree -L 2
  • 指定当前目录下的某个文件夹
    $ tree Desktop

导出文件

> 文件名.格式 的形式导出

$ tree -L 1 > tree.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant