List only directories in current directory

Install tree

sudo apt-get install tree
[/code]

To list it,

tree -dL 1
[/code]

If you use it often, just add an alias in ~/.bashrc:

alias dirs="tree -dL 1"[/code]


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.