Recent Changes - Search:

Basics

Languages

Tools

OS

Resources

PmWiki

pmwiki.org

edit SideBar

Tree

The tree "program/command" enables you to create an ASCII art diagram for the directory tree under a given folder.

Useful options

-d
List only directories, not files
-L #
List only # levels including the target directory

For example:

tree -d -L 6 FullUWwHybridGamma06/ > FullUWwHybridGamma06/dirTreeArt.dat

Makes a tree of directories only (-d) that is 6 levels deep and redirects the output from the terminal to a file. This gives the following output:

FullUWwHybridGamma06/
├── FrozenSolid
│   ├── Convergent
│   │   ├── Constant
│   │   │   ├── EJNK_Hybrid
│   │   │   │   ├── dx001km
│   │   │   │   │   ├── dt00_5min
│   │   │   │   │   ├── dt01_5min
│   │   │   │   │   ├── dt01min
│   │   │   │   │   ├── dt03min
│   │   │   │   │   ├── dt05min
│   │   │   │   │   └── dt10min
│   │   │   │   ├── dx002km
│   │   │   │   │   ├── dt00_5min
│   │   │   │   │   ├── dt01_5min
│   │   │   │   │   ├── dt01min
│   │   │   │   │   ├── dt03min
│   │   │   │   │   ├── dt05min
│   │   │   │   │   ├── dt10min
│   │   │   │   │   ├── dt20min
│   │   │   │   │   └── dt30min
...
Edit - History - Print - Recent Changes - Search
Page last modified on March 15, 2017, at 05:39 PM