• Home
  • Linux
  • List only directories in current directory

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]