“tree” command to list files and directories recursively..

Ah… today I came to know that, most of the people does not know about “tree” command which is very handy when you want to list files and directories inside a directory recursively..

I am using this command for some time now and it is very useful.. I mainly depend on this command than the “ls” command switches…

 

[root@humbles-lap test]# tree
.
├── Desktop
├── Documents
├── Downloads
│   └── devotional.mp3
├── Music
├── Pictures
├── Public
├── Templates
└── Videos

8 directories, 1 file
[root@humbles-lap test]# rpm -qf which tree
tree-1.5.3-3.fc15.x86_64
[root@humbles-lap test]#

As shown above,  “tree” package gives this binary…

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *