Tree (command)

From wikieduonline
Revision as of 15:54, 30 April 2020 by Welcome (talk | contribs)
Jump to navigation Jump to search

tree command, available since the 90s, list contents of directories in a tree-like format and including JSON output support.

Installation

Commands

ubuntu@ubuntu-lts:~$ tree -f -h
.
├── [4.0K]  ./mydirectory1
│   ├── [   0]  ./mydirectory1/file1
│   ├── [   0]  ./mydirectory1/file2
│   ├── [   0]  ./mydirectory1/file3
│   ├── [   0]  ./mydirectory1/file4
│   └── [4.0K]  ./mydirectory1/letters
│       ├── [  13]  ./mydirectory1/letters/books
│       ├── [   0]  ./mydirectory1/letters/magazines
│       └── [   0]  ./mydirectory1/letters/readme
├── [4.0K]  ./mymovies
│   ├── [   0]  ./mymovies/comedy
│   ├── [   0]  ./mymovies/drama
│   ├── [   0]  ./mymovies/terror
│   └── [   0]  ./mymovies/thriller
└── [4.0K]  ./mytrips
    ├── [4.0K]  ./mytrips/mydirexample
    │   └── [   0]  ./mytrips/mydirexample/file.txt
    └── [4.0K]  ./mytrips/pictures
        ├── [   0]  ./mytrips/pictures/Australia
        ├── [   0]  ./mytrips/pictures/France
        ├── [   0]  ./mytrips/pictures/Germany
        ├── [   0]  ./mytrips/pictures/Japan
        └── [   0]  ./mytrips/pictures/USA

Related commands


See also

Advertising: