Monday, December 20, 2010

command to list directories only in Linux

Opt 1: 
ls -l |grep ^d
Opt 2:
find ./ -type d -maxdepth 1


Fancy Opt:
tree -d

prettify