Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a program to browse through directories in a tree like structure in the linux terminal?

Example:

Suppose I was at /home/username/mysite and typed command_I_am_looking_for then I would get: (similar behavior as the tree program in Linux)

mysite
|-- manage.py
|-- mysite
|-- polls   
|-- templates

Then there should be a selection highlighter (say a different color of the currently highlighted folder). Suppose that this selection highlighter was standing on the polls directory. After pushing <enter> I would get this:

mysite
    |-- manage.py
    |-- mysite
    |-- polls   
          |-- __init__.py
          |-- models.py
          |-- tests.py
          |-- views.py
          |-- static
    |-- templates

It should be possible to just keep on going further in the directories, only unfolding them when selected and pushing <enter>. If I pushed a certain key, say s then I would select that directory and change my current directory path into that path.

Is there such a program?

share|improve this question
    
Maybe not exactly what you are looking for, but have you ever tried mc - midnight commander? – choroba Jul 23 '12 at 12:21
    
Thnx. Could you make a seperate answer so I can mark it? – Bentley4 Jul 23 '12 at 12:46
up vote 1 down vote accepted

Maybe not exactly what you are looking for, but have you ever tried mc - the midnight commander?

share|improve this answer
    
I have checked mc, but I prefer vifm for now. It uses by default g,h,j,k instead of arrow keys (as in vim). The interface is also seems a bit simpler. Also check: tuxarena.blogspot.be/2009/04/10-file-managers-for-linux.html – Bentley4 Jul 23 '12 at 12:52
    
Also check ranger: ranger.nongnu.org – Bentley4 Jul 23 '12 at 18:56

use tree command

If it is not installed in your system then install with this procdure.

First go to root

[max@avi ~]$ su -

Password:

then in the terminal type this command

[root@avi ~]# yum install tree

once it installed type this command in the terminal

[max@avi ~]$ tree

share|improve this answer
    
I already work with tree, but you can only print out directory structures, not browse through them right? – Bentley4 Jul 23 '12 at 12:49

IMHO Ranger is a better option and it has vi like bindings

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .