How to get directory structure in terminal by using “tree”?
Working with console, sometimes is necessary to see files structure in graphical way. To do this we need to install “tree”, on ubuntu I used this command:
sudo apt-get install tree
After installation just type:
tree
And you will get full structure of current directory(I’m in /var/www/phpforus/_vagrant):
├── files │ └── dot ├── hiera.yaml ├── puppet │ ├── hieradata │ │ └── common.yaml │ ├── manifests │ │ └── default.pp │ └── Puppetfile ├── shell │ ├── initial-setup.sh │ ├── librarian-puppet-vagrant.sh │ ├── os-detect.sh │ ├── self-promotion.txt │ └── update-puppet.sh └── Vagrantfile
To get full list of “tree” commands type:
tree --help