ASCII Library for Creating “Pretty” Directory Trees?

后端 未结 10 1091
时光说笑
时光说笑 2020-12-04 07:33

Is there some *nix tool or perl/php library that will let you easily create directory tree visualizations that look like the following?

www
|-- private
|             


        
10条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 07:55

    exa with --tree does an excellent job:

    exa --tree ~/tmp/public/
    
    
    ├── aboutme
    │  └── index.html
    ├── atrecurse
    │  └── index.html
    ├── base.css
    ├── html5
    │  ├── cat-and-mouse
    │  └── frantic
    │     ├── css
    │     │  └── main.css
    

提交回复
热议问题