An example using "tree"
Updated: Oct6,2019

Of course, after some surfing I found all sorts of pre-existing tools for characterizing and visualizing a directory tree.



% sudo apt-cache search tree 
% sudo apt-get install tree 


% pwd 
/home/sco/tmp
% ls 
A1/  A2/  disk_survey.parlab  disk_survey.table  

% tree A1 
A1
├── AA1
├── AA2
├── AA3
└── CC0
    ├── AA1
    ├── AA2
    └── AA3

1 directory, 6 files
% tree . 
.
├── A1
│   ├── AA1
│   ├── AA2
│   ├── AA3
│   └── CC0
│       ├── AA1
│       ├── AA2
│       └── AA3
├── A2
│   ├── AA1
│   ├── AA2
│   └── AA3
├── disk_survey.parlab
├── disk_survey.table
├── junk.fp
├── list.1
├── list.10
└── My_list.subdirs

3 directories, 15 files



Such tree diagrams can get very complicated!




Back to calling page