zoukankan      html  css  js  c++  java
  • Mac:文件夹树型展示 tree

    目标:

     

    想要在MAC的Terminal中查看文件夹中所有文件的树型结构及文件夹、文件树统计。

     

    安装方法:

    1.brew安装

    官网:http://brew.sh/

    brew是Mac中安装软件的神器,一定要安装一个,一定要,一定要。

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    验证brew安装是否成功

    ➜    brew -v
    Homebrew 0.9.5 (git revision f0645; last commit 2015-11-24)

    2.安装tree

    ➜    brew install tree

    等待安装结束后,就结束了。

    3.使用tree

    控制台进入目录,直接输入tree,即可展示tree结果:树型结构、目录下所有的文件夹数、目录下文件夹

    ➜    tree
    .
    ├── env
    │   └── default
    │       ├── default.properties
    │       └── java.properties
    ├── libs
    ├── manifest.json
    ├── specs
    │   └── hello_world.spec
    └── src
        └── test
            └── java
                └── StepImplementation.java
    
    7 directories, 5 files
  • 相关阅读:
    cf C. Vasya and Robot
    zoj 3805 Machine
    cf B. Vasya and Public Transport
    cf D. Queue
    cf C. Find Maximum
    cf B. Two Heaps
    cf C. Jeff and Rounding
    cf B. Jeff and Periods
    cf A. Jeff and Digits
    I Think I Need a Houseboat
  • 原文地址:https://www.cnblogs.com/s380774061/p/5089671.html
Copyright © 2011-2022 走看看